diff options
author | Kenneth Russel <[email protected]> | 2008-07-06 01:03:35 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-07-06 01:03:35 +0000 |
commit | 9df128e4eae30352d2ff440554ef067eef3ca793 (patch) | |
tree | 6e5b65a30e81998c5e76bf81a75314c4c6adae15 /doc | |
parent | 649888422631e3bec8fa0f60afa99bc690992d71 (diff) |
Fixed Windows-specific problem with locally generated function pointer
typedefs where the calling convention was not specified. Provided new
LocalProcAddressCallingConvention directive to allow developer to
specify the calling convention on a per-function basis; used this in
gl-es1.cfg and gl-es2.cfg. Changed GLEmitter to force the calling
convention of the locally typedefed function pointers for OpenGL
function name unification to GL_APIENTRY, compatible with OpenGL ES 1
and OpenGL ES 2. Changed generated native glue code to #define
GL_APIENTRY appropriately on the desktop. Refactored custom C code.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@96 a78bb65f-1512-4460-ba86-f6dc96a7bf27
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/manual/index.html | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/manual/index.html b/doc/manual/index.html index 50fe71b..075ffe5 100755 --- a/doc/manual/index.html +++ b/doc/manual/index.html @@ -1551,10 +1551,7 @@ code generation. Defaults to false. (optional) Indicates that a ProcAddressTable entry should be produced for the specified function even though it does not have an associated -function pointer typedef in the header. This directive does not -currently cause the autogenerated Java and C code to change to -call-through-function-pointer style, which should probably be -considered a bug. (FIXME) +function pointer typedef in the header. <dt><strong><a name="GetProcAddressTableExpr">GetProcAddressTableExpr</a></strong> @@ -1575,6 +1572,14 @@ separate class accessed via static methods, so one of the associated directives is <code>GetProcAddressTableExpr ALProcAddressLookup.getALCProcAddressTable()</code>. +<dt><strong><a name="LocalProcAddressCallingConvention">LocalProcAddressCallingConvention</a></strong> +<dd> Syntax: <code>LocalProcAddressCallingConvention [function name] [calling convention string]</code> <br> + +(optional) For the given function whose glue code generation is +affected by a <CODE>ForceProcAddressGen</CODE> directive, this +specifies the calling convention of the locally generated function +pointer typedef. This is needed only on Windows and only for APIs +whose calling convention differs from the default __cdecl. <dt><strong><a name="ProcAddressNameExpr">ProcAddressNameExpr</a></strong> <dd> Syntax: <code>ProcAddressNameExpr [expression]</code> <br> |