liiir1985
11-06-2006 14:25:43
Is there any documents or tutorials, that shows how to use GangstaNet?
And another question:
How to use the getOption function of Scenemanager class?
It needs a Intptr object. Is there a way to convert the common objects from Ogredotnet to Intptr object?
rastaman
12-06-2006 18:09:50
Gangsta is not vary active
http://www.ogre3d.org/phpBB2/viewtopic.php?t=10758
getOption/setOptions are for custome Scenemanagers like PLSM or DotSceneOctree. I'v made a special class for DotSceneOctree OgreDotNet.DotSceneOctreeHelper has all of the options of dsot in ogreaddons cvs (I think it was updated). see thread
http://www.ogre3d.org/phpBB2/viewtopic.php?t=19515
As for others scene managers you need to figure out what the unmanaged c++ value is and its size in bytes. Then use OgreDotNet MemoryDataStream to create a buffer. use the getPtr function to get an IntPtr and check out System.Runtime.InteropServices.Marshal class for ways of converting it to .Net data.