Пример #1
0
 public CommandSpriteBatchBegin(RemoteSpriteBatch batch, SpriteSortMode sortMode, BlendState blendState,
                                SamplerState samplerState, DepthStencilState depthStencil, RasterizerState rasterizer, RemoteEffect effect)
 {
     Batch           = batch;
     SortMode        = sortMode;
     BlendState      = blendState;
     SamplerState    = samplerState;
     Effect          = effect;
     DepthStencil    = depthStencil;
     RasterizerState = rasterizer;
 }
 /// <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;
 }
 public CommandSpriteBatchDrawString(
     RemoteSpriteBatch batch,
     RemoteSpriteFont font,
     string str,
     Vector2 position,
     Color color,
     float rotation,
     Vector2 origin,
     Vector2 scale,
     SpriteEffects spriteEffects,
     float layerDepth)
 {
     Batch         = batch;
     String        = str;
     Font          = font;
     Position      = position;
     Color         = color;
     Rotation      = rotation;
     Origin        = origin;
     Scale         = scale;
     LayerDepth    = layerDepth;
     SpriteEffects = spriteEffects;
 }
Пример #4
0
 public CommandSpriteBatchEnd(RemoteSpriteBatch batch)
 {
     Batch = batch;
 }