You should be able do it, old Vega and Performer are 2 examples that were
written in C++ but exposed to the users as 'C' based functions

But this is no small task and there is likely to be quite a few quirks and
your likely to have to change how some things are defined.

Good luck in your endeavors



____________________________________________________________________________
__
Gordon Tomlinson 

gor...@gordontomlinson.com IM: gordon3db...@3dscenegraph.com 
www.vis-sim.com        
www.gordontomlinson.com
www.PhotographyByGordon.com
____________________________________________________________________________
__

-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Holger
Carsten Krumm
Sent: Tuesday, October 12, 2010 1:47 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Using OSG in C program - possible?

Hi,

first of all my regards to this community here. OSG is a great API for using
3D graphics on a high level and seeing the supportive nature of the guys
here, it is overwhelming!

I got a question, being a not-so-deeply-involved programmer.

Can someone give me some information about using OSG in a ANSI C program? Is
it easily possible to wrap OSG in "extern" function calls to make it happen?
Or do I have to expect major culprits?

Don't ask why I do not migrate the whole source: it is a pretty big bunch of
C code and porting it is not an option at the moment...

Any pointer or opinion is appreciated!


All the best,

Holger

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32648#32648





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to