Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 public RenderStackObject(Renderer rObj, Obj.Translation tObj)
 {
     renderer       = rObj;
     objTranslation = tObj;
 }