Beispiel #1
0
 void SFML.Graphics.Drawable.Draw(SFML.Graphics.RenderTarget target, SFML.Graphics.RenderStates states)
 {
     rnd = new SFML.Graphics.CircleShape(10);
     ((SFML.Graphics.CircleShape)rnd).Position  = new SFML.System.Vector2f(myBody.Position.X, myBody.Position.Y);
     ((SFML.Graphics.CircleShape)rnd).FillColor = new SFML.Graphics.Color(255, 255, 255, 255);
     ((SFML.Graphics.CircleShape)rnd).Draw(target, states);
     Console.Out.Write("Y: " + myBody.Position.Y);
 }
Beispiel #2
0
            //public Shader                      Shader       { get; }

            public ProtocolItem(
                ProtocolItemTypes type,
                SFML.Graphics.RenderTexture renderSource = null,
                SFML.Graphics.RenderTarget renderTarget  = null,
                Ur.Color?color = null,
                Canvas canvas  = null,
                //Dictionary<string, object>  shaderParams = null,
                int blendMode = 0
                )
            {
                this.Type         = type;
                this.RenderSource = renderSource;
                this.RenderTarget = renderTarget;
                this.Color        = color?.ToSFMLColor() ?? SFML.Graphics.Color.Black;
                this.Canvas       = canvas;
                this.BlendMode    = blendMode;
            }
Beispiel #3
0
 public abstract void Draw(SFML.Graphics.RenderTarget target, SFML.Graphics.RenderStates renderStates);