From b0f4d671bcf799884a3d3f31fbfee47f7fc6e5cb Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sat, 24 Apr 2010 02:41:52 +0200 Subject: dynamic binding for OpenGL specific functionality. --- resources/cl-impl.cfg | 11 +++++++++++ resources/clImplCustomCode.java | 8 ++++---- 2 files changed, 15 insertions(+), 4 deletions(-) (limited to 'resources') diff --git a/resources/cl-impl.cfg b/resources/cl-impl.cfg index 93dab2ba..a404398f 100644 --- a/resources/cl-impl.cfg +++ b/resources/cl-impl.cfg @@ -18,7 +18,18 @@ EmitProcAddressTable true ProcAddressTableClassName CLProcAddressTable GetProcAddressTableExpr addressTable ProcAddressNameExpr $UpperCase(arg) + +#dynamic binding for OpenGL specific functions ForceProcAddressGen clGetGLContextInfoKHR +ForceProcAddressGen clCreateFromGLBuffer +ForceProcAddressGen clCreateFromGLRenderbuffer +ForceProcAddressGen clCreateFromGLTexture2D +ForceProcAddressGen clCreateFromGLTexture3D +ForceProcAddressGen clEnqueueAcquireGLObjects +ForceProcAddressGen clEnqueueReleaseGLObjects +ForceProcAddressGen clGetGLObjectInfo +ForceProcAddressGen clGetGLTextureInfo +ForceProcAddressGen clIcdGetPlatformIDsKHR Unignore clGetExtensionFunctionAddress #AccessControl clGetExtensionFunctionAddress PACKAGE_PRIVATE diff --git a/resources/clImplCustomCode.java b/resources/clImplCustomCode.java index 3048a6ad..fab3a724 100644 --- a/resources/clImplCustomCode.java +++ b/resources/clImplCustomCode.java @@ -1,9 +1,9 @@ - final static CLProcAddressTable addressTable = new CLProcAddressTable(); + private final CLProcAddressTable addressTable; -// static{ -// ProcAddressHelper.resetProcAddressTable(addressTable, ); -// } + public CLImpl(CLProcAddressTable addressTable) { + this.addressTable = addressTable; + } public long clCreateContext(PointerBuffer properties, PointerBuffer devices, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret) { -- cgit v1.2.3