Exemplo n.º 1
0
 public SimpleCircle(ECSLib.IPosition positionDB, double radius, SDL.SDL_Color colour)
 {
     _positionDB  = positionDB;
     positionByDB = true;
     _shape       = new Shape()
     {
         Points = CreatePrimitiveShapes.Circle(0, 0, radius, 128),
         Color  = colour,
     };
 }
Exemplo n.º 2
0
        public SimpleLine(ECSLib.IPosition positionDB, PointD toPoint, SDL.SDL_Color colour)
        {
            _positionDB  = positionDB;
            positionByDB = true;
            PointD p0 = new PointD()
            {
                X = 0, Y = 0
            };

            _shape = new Shape()
            {
                Points = new PointD[] { p0, toPoint },
                Color  = colour,
            };
        }
Exemplo n.º 3
0
 public Icon(ECSLib.IPosition positionDB)
 {
     _positionDB  = positionDB;
     positionByDB = true;
 }