public void addSpecialObject(string specialObjName, short transX, short transY, short transZ) { Render.Renderer specialObjRenderer = new Render.Renderer(); if (!modelHelper.elemExists(specialObjName)) { specialObjRenderer.SetRenderMode(LakiTool.Render.RenderMode.Geo); specialObjRenderer.rendererObject.Georenderer.SetInitialDataFromLabelName(OBJs.Special.Utils.SpecialUtil.findSpecialFromPresetName(specialObjName).GeoName()); specialObjRenderer.initRenderer(); modelHelper.rList.Add(new Render.NamedRenderer(specialObjRenderer, specialObjName)); } specialObjRenderer = modelHelper.getRendererFromName(specialObjName); Obj.Translation translation = new Obj.Translation(); translation.xTrans = transX; translation.yTrans = transY; translation.zTrans = transZ; renderStack.Add(new Render.RenderStackObject(specialObjRenderer, translation)); }
public RenderStackObject(Renderer rObj, Obj.Translation tObj) { renderer = rObj; objTranslation = tObj; }