[gephex-devel] opengl and gephex
Martin Bayer
martin at gephex.org
Thu Jun 16 17:15:16 CEST 2005
>> but could one possibly set things up so that the modules just links to a
>> glcore c-interface instead of "the real" gl lib? in the sense that glcore
>> would provide the indirection transparently via c-bindings? sorry if
>> i'm a bit
>> clueless about linking issues - probably calls for "multiply defined
>> symbol"
>> hell.
>>
>> void glWhatever(GLint foobar)
>> {
>> glcore::core->glWhatever(foobar);
>> }
>>
> I don't think this will work. Feel free to try though :)
That depends on the linker and is out of the c spec. But you could
define macros instead if functions. Or if the code is c++ you could
create a compatibility header with something like that:
namespace gl_compat
{
void glWhatever(GLint foobar)
{
glcore::core->glWhatever(foobar);
}
}
using gl_compat::glWhatever;
>> btw, are there any documents regarding the gephex 0.5 architecture?
> Not that I'm aware of...you can download the code and look at it or
> search through the gephex-devel archive. But there hasn't been written
> anything "official" :) (Martin, correct me if I'm wrong here please :D )
There are some detailed mails from Georg around that sum up important
design discussions. I consider most of them quite official. :)
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.gephex.org/pipermail/gephex-devel/attachments/20050616/ef5b29ec/signature.pgp
More information about the gephex-devel
mailing list