diff options
author | Michael Bien <[email protected]> | 2010-04-24 02:41:52 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-04-24 02:41:52 +0200 |
commit | b0f4d671bcf799884a3d3f31fbfee47f7fc6e5cb (patch) | |
tree | deca75214756762e5be05fa8e54c0a5413eb0015 /resources | |
parent | 2fc985f0cdc373cb3c78cc198e21dcc1ce5d961f (diff) |
dynamic binding for OpenGL specific functionality.
Diffstat (limited to 'resources')
-rw-r--r-- | resources/cl-impl.cfg | 11 | ||||
-rw-r--r-- | resources/clImplCustomCode.java | 8 |
2 files changed, 15 insertions, 4 deletions
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) { |