Menu

#1 Adding capability to get a Mesh

open
nobody
None
5
2007-08-22
2007-08-22
No

add in scenenode.h

EXPORT IntPtr SceneNode_GetMesh(IntPtr node);

in scenenode.cpp

IntPtr SceneNode_GetMesh(IntPtr node)
{
return ((IMeshSceneNode*)node)->getMesh();
}

compile libirrlicht.a

add in SceneNode.cs

public Mesh Mesh
{
get
{
return (Mesh)
NativeElement.GetObject(SceneNode_GetMesh(_raw),
typeof(Mesh));
}
}

[DllImport(Native.Dll), SuppressUnmanagedCodeSecurity]
static extern IntPtr SceneNode_GetMesh(IntPtr node);

gotcha, now we can see the Mesh.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.