Ejemplo n.º 1
0
 ////////////////////////////////////////////////////////////
 /// <summary>
 /// Default constructor
 /// </summary>
 ////////////////////////////////////////////////////////////
 protected Shape() :
     base(IntPtr.Zero)
 {
     myGetPointCountCallback = new GetPointCountCallbackType(InternalGetPointCount);
     myGetPointCallback      = new GetPointCallbackType(InternalGetPoint);
     SetThis(sfShape_create(myGetPointCountCallback, myGetPointCallback, IntPtr.Zero));
 }
Ejemplo n.º 2
0
 ////////////////////////////////////////////////////////////
 /// <summary>
 /// Default constructor
 /// </summary>
 ////////////////////////////////////////////////////////////
 protected Shape()
     : base(IntPtr.Zero)
 {
     myGetPointCountCallback = new GetPointCountCallbackType(InternalGetPointCount);
     myGetPointCallback = new GetPointCallbackType(InternalGetPoint);
     CPointer = sfShape_create(myGetPointCountCallback, myGetPointCallback, IntPtr.Zero);
 }
Ejemplo n.º 3
0
            ////////////////////////////////////////////////////////////
            /// <summary>
            /// Construct the shape from another shape
            /// </summary>
            /// <param name="copy">Shape to copy</param>
            ////////////////////////////////////////////////////////////
            public Shape(Shape copy) :
                base(IntPtr.Zero)
            {
                myGetPointCountCallback = new GetPointCountCallbackType(InternalGetPointCount);
                myGetPointCallback      = new GetPointCallbackType(InternalGetPoint);
                SetThis(sfShape_create(myGetPointCountCallback, myGetPointCallback, IntPtr.Zero));

                Origin   = copy.Origin;
                Position = copy.Position;
                Rotation = copy.Rotation;
                Scale    = copy.Scale;

                Texture          = copy.Texture;
                TextureRect      = copy.TextureRect;
                FillColor        = copy.FillColor;
                OutlineColor     = copy.OutlineColor;
                OutlineThickness = copy.OutlineThickness;
            }
Ejemplo n.º 4
0
        ////////////////////////////////////////////////////////////
        /// <summary>
        /// Construct the shape from another shape
        /// </summary>
        /// <param name="copy">Shape to copy</param>
        ////////////////////////////////////////////////////////////
        public Shape(Shape copy)
            : base(IntPtr.Zero)
        {
            myGetPointCountCallback = new GetPointCountCallbackType(InternalGetPointCount);
            myGetPointCallback = new GetPointCallbackType(InternalGetPoint);
            CPointer = sfShape_create(myGetPointCountCallback, myGetPointCallback, IntPtr.Zero);

            Origin = copy.Origin;
            Position = copy.Position;
            Rotation = copy.Rotation;
            Scale = copy.Scale;

            Texture = copy.Texture;
            TextureRect = copy.TextureRect;
            FillColor = copy.FillColor;
            OutlineColor = copy.OutlineColor;
            OutlineThickness = copy.OutlineThickness;
        }
Ejemplo n.º 5
0
 static extern IntPtr sfShape_create(GetPointCountCallbackType getPointCount, GetPointCallbackType getPoint, IntPtr userData);
Ejemplo n.º 6
0
 static extern IntPtr sfShape_create(GetPointCountCallbackType getPointCount, GetPointCallbackType getPoint, IntPtr userData);