public TCM_GraphicsObject(TCM_Graphics g)
 {
     transform     = new RawMatrix3x2(1, 0, 0, 1, 0, 0);
     frontChildren = new List <TCM_GraphicsObject>();
     backChildren  = new List <TCM_GraphicsObject>();
     parent        = null;
     graphics      = g;
 }
 public void addChild(TCM_GraphicsObject o, bool back)
 {
     o.parent = this;
     if (back)
     {
         backChildren.Add(o);
     }
     else
     {
         frontChildren.Add(o);
     }
 }
예제 #3
0
 public GameObject(TCM_Graphics g)
 {
     display = new TCM_DrawingObject(g, new SharpDX.Mathematics.Interop.RawColor4(1, 1, 1, 1), new SharpDX.Mathematics.Interop.RawColor4(.5f, .5f, .5f, 1), 2);
     ((TCM_DrawingObject)display).setGeometry(TCM_DrawingObject.Shape.rectangle, -60, -60, 120, 120);
 }