IntPtr SceneManager_AddTextSceneNode2(IntPtr scenemanager, IntPtr font, M_STRING text, IntPtr parent, M_DIM2DF size, M_VECT3DF pos, int ID, M_SCOLOR shade_top, M_SCOLOR shade_down) { if (((IGUIFont*)font)->getType() == EGFT_BITMAP) { return GetSceneFromIntPtr(scenemanager)->addBillboardTextSceneNode((IGUIFont *)font, MU_WCHAR(text), (ISceneNode *)parent, MU_DIM2DF(size), MU_VECT3DF(pos), ID, MU_SCOLOR(shade_top), MU_SCOLOR(shade_down)); } else { return ((CGUITTFont*)font)->createBillboard(MU_WCHAR(text), MU_DIM2DF(size), (ISceneManager*)scenemanager, (ISceneNode*)parent, ID ); } }
void Particle_SetParticleSize(IntPtr part, M_DIM2DF size) { GetPSSFromIntPtr(part)->setParticleSize(MU_DIM2DF(size)); }
void Emitter_SetMaxStartSize(IntPtr emitter, M_DIM2DF size) { ((Emitter*)emitter)->setMaxStartSize(MU_DIM2DF(size)); }
IntPtr SceneManager_AddTerrainMesh(IntPtr scenemanager, M_STRING meshname, IntPtr texture, IntPtr heightmap, M_DIM2DF stretchSize, float maxHeight, M_DIM2DS defaultVertexBlockSize) { return GetSceneFromIntPtr(scenemanager)->addTerrainMesh(meshname, (IImage*)texture, (IImage*) heightmap, MU_DIM2DF(stretchSize), maxHeight, MU_DIM2DS(defaultVertexBlockSize)); }
IntPtr SceneManager_AddHillPlaneMesh(IntPtr scenemanager, M_STRING name, M_DIM2DF tileSize, M_DIM2US tileCount, float hillHeight, M_DIM2DF countHills, M_DIM2DF textureRepeatCount) { return GetSceneFromIntPtr(scenemanager)->addHillPlaneMesh(name, MU_DIM2DF(tileSize), MU_DIM2US(tileCount), 0, hillHeight, MU_DIM2DF(countHills), MU_DIM2DF(textureRepeatCount)); }
IntPtr SceneManager_AddBillboardSceneNode(IntPtr scenemanager, IntPtr parent, M_DIM2DF size, int id) { return GetSceneFromIntPtr(scenemanager)->addBillboardSceneNode((ISceneNode *)(parent), MU_DIM2DF(size), vector3df(0, 0, 0), id); }
void BillboardSceneNode_SetSize(IntPtr billboard, M_DIM2DF size) { ((IBillboardSceneNode*)billboard)->setSize(MU_DIM2DF(size)); }