LPD3DXMESH mesh0 = ent_getmesh(ent,0,0);
LPD3DXMESH mesh1 = D3DXCreateMesh(...);
ent_setmesh(ent,mesh1,0,0);
// deallocate mesh at end of level or game
mesh0 = ent_getmesh(ent,0,0);
mesh0->Release();
ent_setmesh(ent,NULL,0,0);
Originally Posted By: EvilSOB
Secondary to that issue... is 'Release" NECESSARY with gamestudio?
Quote:
You can set a mesh that you've allocated, but you should then release it yourself at the end of the game
Regards, Robert
Quote
Everything should be made as simple as possible, but not one bit simpler. by Albert Einstein