コード例 #1
0
 public void Draw(RemoteTexture texture, Rectangle dstRect, Color color)
 {
     Server.SendCommand(new CommandSpriteBatchDraw(
                            this,
                            texture,
                            dstRect,
                            null,
                            color,
                            0.0f,
                            Vector2.Zero,
                            SpriteEffects.None,
                            0.0f
                            ));
 }
コード例 #2
0
 public void Draw(RemoteTexture texture, Vector2 position, Color color)
 {
     Server.SendCommand(new CommandSpriteBatchDraw(
                            this,
                            texture,
                            new Rectangle((int)position.X, (int)position.Y, -1, -1),
                            null,
                            color,
                            0.0f,
                            Vector2.Zero,
                            SpriteEffects.None,
                            0.0f
                            ));
 }
コード例 #3
0
 public void Draw(RemoteTexture texture, Rectangle destRect,
                  Rectangle?srcRect, Color color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth)
 {
     Server.SendCommand(new CommandSpriteBatchDraw(
                            this,
                            texture,
                            destRect,
                            srcRect,
                            color,
                            rotation,
                            origin,
                            effects,
                            layerDepth
                            ));
 }
コード例 #4
0
 /// <summary>
 /// Crée une nouvelle instance de CommandSpriteBatchDraw.
 /// </summary>
 public CommandSpriteBatchDraw(
     RemoteSpriteBatch batch,
     RemoteTexture texture,
     Rectangle?destRect,
     Rectangle?srcRect,
     Color color,
     float rotation,
     Vector2 origin,
     SpriteEffects effects,
     float layerDepth)
 {
     Batch   = batch;
     Texture = texture;
     DestinationRectangle = destRect;
     SourceRectangle      = srcRect;
     Color      = color;
     Rotation   = rotation;
     Origin     = origin;
     Effect     = effects;
     LayerDepth = layerDepth;
 }