Re: opengl and gephex
Martin Bayer <[email protected]> Thu, 16 Jun 2005 17:15:16 +0200
| Newsgroups | gmane.comp.video.gephex.devel |
|---|---|
| Message-ID | <[email protected]> |
>> 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
_______________________________________________
gephex-devel mailing list
[email protected]
http://lists.gephex.org/mailman/listinfo/gephex-devel
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCsZeJCm3i57PRsbsRArAmAJ0QNngR5KdcPMKw41rUnDmWh8QNHgCfcRFh V9w8mvkG02aTCiwm/dJs6vE= =ZunA -----END PGP SIGNATURE-----