Original Post
Hey!
After a long time of searching who others make this i found a nice way, i hope. And now i will ask youe what do you think of it.
Here is a short example to load a static mehs:
CStaticMesh *Desk;
Desk = gMeshMng->Load("desk.obj");
...
Desk->Render(gCamera);
or an animated one:
CAnimatedMesh *Guard;
Guard = gMeshMng->("guard.ms3d");
...
Guard->Render(gCamera);
There is also support for loading from memory (will be used by plugins):
CAnimatedMesh *Henri;
Array tmp_Faces;
...
MDLPlugin->Load("Henri.mdl", &tmp_Faces, &tmp_texcords,...);
Henri = gMeshMng->LoadFromMemory(tmp_Faces, tmp_texcords,...);
...
Henri->Render(gCamera);
So... now what do you think about this interface for the modelsubsystem? And yes it only shows the basic of it, but I want to sleep now.
Austrian Coder