I'm a little confused about the GPC approach to binding to C libraries. The documentation is a little sketchy and warns that some changes might occur. Is there some clarification available ?
Also, bindings of FPC to OpenGL are available, which are derived from Delphi3D. These are mostly limited to Win32.DLLs . Has anybody started a GPC to OpenGL or Mesa binding for Linux ? Might it be appropriate to simply start from the FPC template ?
Thanks, Rick.
Hi Rick, I have some bindings that are based on the FPC ones that work for Win32, Linux, FreeBSD and MacOS X via FPC, Delphi and Kylix.
They are part of the JEDI-SDL project ( http://jedi-sdl.sf.net ) and it would be great if someone could help make them GPC compliant as well. I would think that it probably just requires a few more IFDEFs.
Let me know if you are interested.
Dominique Louis http://www.DelphiGamer.com := go on, write a game instead;
Rick Engebretson wrote:
I'm a little confused about the GPC approach to binding to C libraries. The documentation is a little sketchy and warns that some changes might occur. Is there some clarification available ?
Also, bindings of FPC to OpenGL are available, which are derived from Delphi3D. These are mostly limited to Win32.DLLs . Has anybody started a GPC to OpenGL or Mesa binding for Linux ? Might it be appropriate to simply start from the FPC template ?
Thanks, Rick.
Dominique Louis wrote:
Hi Rick, I have some bindings that are based on the FPC ones that work for Win32, Linux, FreeBSD and MacOS X via FPC, Delphi and Kylix.
They are part of the JEDI-SDL project ( http://jedi-sdl.sf.net ) and it would be great if someone could help make them GPC compliant as well. I would think that it probably just requires a few more IFDEFs.
Let me know if you are interested.
Dominique Louis http://www.DelphiGamer.com := go on, write a game instead;
Rick Engebretson wrote:
I'm a little confused about the GPC approach to binding to C libraries. The documentation is a little sketchy and warns that some changes might occur. Is there some clarification available ?
Also, bindings of FPC to OpenGL are available, which are derived from Delphi3D. These are mostly limited to Win32.DLLs . Has anybody started a GPC to OpenGL or Mesa binding for Linux ? Might it be appropriate to simply start from the FPC template ?
Thanks, Rick.
Hi Dominique,
Thank you, I am very interested in working with you on this. And I have some good time to commit. Please be a little patient with me, I'm an old Biophysicist by training and a programmer by necessity. And I'm not a gamer. But 20 some years ago I was a beta tester for a DOS program called QDraw on a pre IBM pc and drew some nice protein pictures. (The screen went blank for ten minutes until the molecule picture came up -- tough gaming with that.)
The C language is a curse to the broader scientific community. Hooray for GPC and Linux.
I still hope for some specific binding format clarification from the GPC developers.
Thanks again, Rick.
Rick Engebretson wrote:
Rick Engebretson wrote:
I'm a little confused about the GPC approach to binding to C libraries. The documentation is a little sketchy and warns that some changes might occur. Is there some clarification available ?
Which part exactly are you referring to? (The documentation is large and not all of it up to date.)
I still hope for some specific binding format clarification from the GPC developers.
For general info, look at the demo programs. For specific questions, feel free to ask here.
Frank
Frank Heckenbach wrote:
Rick Engebretson wrote:
Rick Engebretson wrote:
I'm a little confused about the GPC approach to binding to C libraries. The documentation is a little sketchy and warns that some changes might occur. Is there some clarification available ?
Which part exactly are you referring to? (The documentation is large and not all of it up to date.)
I still hope for some specific binding format clarification from the GPC developers.
For general info, look at the demo programs. For specific questions, feel free to ask here.
Frank
In the Gnu Pascal Manual { for GPC 20020510 ( GCC 2.95.x ) }, in the section 7.11.1 Importing Libraries from Other Languages, is a paragraph that reads
"Caution: This syntax ('C', 'asmname' and such) is subject to change."
This is the version GPC I use, and I've looked through some code. It is an important aspect of GPC that could be clarified.
Thanks, Rick.
Rick Engebretson wrote:
In the Gnu Pascal Manual { for GPC 20020510 ( GCC 2.95.x ) }, in the section 7.11.1 Importing Libraries from Other Languages, is a paragraph that reads
"Caution: This syntax ('C', 'asmname' and such) is subject to change."
This is the version GPC I use, and I've looked through some code. It is an important aspect of GPC that could be clarified.
Well, it has been clarified, in that the syntax has in fact changed since then. So if you want to write new external bindings, I highly suggest to use a newer GPC version, lest you'll have to rewrite it all later.
Frank