예제 #1
0
        public override void Draw(DrawState state)
        {
            if (reDrawing)
                camera.Draw(state);

            texture.Draw(state);
        }
예제 #2
0
 public static void Draw()
 {
     if (baseCamera != null)
     {
         DrawState state = new DrawState();
         baseCamera.Draw(state);
     }
 }
예제 #3
0
 public override void Draw(DrawState state)
 {
     lock (textureLoadedLock)
     {
         if (textureLoaded)
         {
             texture.Draw(state);
         }
     }
 }
예제 #4
0
        public void Draw(DrawState state)
        {
            Vector2 drawPosition = parent.position + MathHelper.rotateVector2(parent.rotation, position);
            drawPosition = drawPosition - state.currentCamera.position;
            drawPosition *= state.currentCamera.zoom;
            drawPosition = MathHelper.rotateVector2(-state.currentCamera.rotation, drawPosition);
            drawPosition += state.currentCamera.diagonal / 2f;

            state.currentCamera.addDrawCall(new DrawCallTexture(texture, drawPosition, rotation + parent.rotation - state.currentCamera.rotation, filter, textureScale*state.currentCamera.zoom, layer));
        }
예제 #5
0
        public void Draw(DrawState state)
        {
            Vector2 drawPosition = parent.position + MathHelper.rotateVector2(parent.rotation, position);
            drawPosition = drawPosition - state.currentCamera.position;
            drawPosition *= state.currentCamera.zoom;
            drawPosition = MathHelper.rotateVector2(-state.currentCamera.rotation, drawPosition);
            drawPosition += state.currentCamera.diagonal / 2f;

            state.currentCamera.addDrawCall(new DrawCallSpriteFontText(font, text, filter, drawPosition, rotation + parent.rotation - state.currentCamera.rotation, layer, scale*state.currentCamera.zoom));
        }
예제 #6
0
        public void Draw(DrawState state)
        {
            Camera previousCamera = state.currentCamera;
            if(previousCamera != null)
                previousCamera.addSubBatch(this);
            state.currentCamera = this;

            world.Draw(state);

            state.currentCamera = previousCamera;
        }
        public void Draw(DrawState state)
        {
            Vector2 drawPosition = parent.position + MathHelper.rotateVector2(parent.rotation, position);
            drawPosition = drawPosition - state.currentCamera.position;
            drawPosition *= state.currentCamera.zoom;
            drawPosition = MathHelper.rotateVector2(-state.currentCamera.rotation, drawPosition);
            drawPosition += state.currentCamera.diagonal / 2f;

            int phase;

            phase = (((int)(this._phase * (textures.Length))) % textures.Length + textures.Length) % textures.Length;
            Vector2 scale = new Vector2(size.X / (float)textures[phase].width, size.Y / (float)textures[phase].height);

            state.currentCamera.addDrawCall(new DrawableTexture.DrawCallTexture(textures[phase], drawPosition, rotation + parent.rotation - state.currentCamera.rotation, filter, textureScale * state.currentCamera.zoom, layer));
        }
예제 #8
0
        public void Draw(DrawState state)
        {
            Vector2 drawPosition = parent.position + MathHelper.rotateVector2(parent.rotation, position);
            drawPosition = drawPosition - state.currentCamera.position;
            drawPosition *= state.currentCamera.zoom;
            drawPosition = MathHelper.rotateVector2(-state.currentCamera.rotation, drawPosition);
            drawPosition += state.currentCamera.diagonal / 2f;

            int phase;
            if (texture.length != 0)
            {
                phase = (((int)(this._phase * (texture.length))) % texture.length + texture.length) % texture.length;
            }
            else
            {
                phase = 0;
            }

            state.currentCamera.addDrawCall(new DrawCallTextureStrip(texture, drawPosition, rotation + parent.rotation - state.currentCamera.rotation, filter, textureScale * state.currentCamera.zoom, layer, texture.getRectangleFrame((int)phase)));
        }
예제 #9
0
 public override void Draw(DrawState state)
 {
     minimap.Draw(state);
 }
예제 #10
0
 public virtual void Draw(DrawState state)
 {
 }
예제 #11
0
 public override void Draw(DrawState state)
 {
     Dummy.Draw(state);
 }
예제 #12
0
 public override void Draw(DrawState state)
 {
     texture.Draw(state);
 }
예제 #13
0
 public override void Draw(DrawState state)
 {
     Dummy.Draw(state);
 }
예제 #14
0
 public override void Draw(DrawState state)
 {
     background.Draw(state);
 }
예제 #15
0
파일: Tree.cs 프로젝트: warrocky/FightLands
 public override void Draw(DrawState state)
 {
     shadowTexture.Draw(state);
     drawTexture.Draw(state);
 }
예제 #16
0
 public override void Draw(DrawState state)
 {
     minimap.Draw(state);
 }
예제 #17
0
파일: Tree.cs 프로젝트: warrocky/FightLands
 public override void Draw(DrawState state)
 {
     shadowTexture.Draw(state);
     drawTexture.Draw(state);
 }
예제 #18
0
 public virtual void Draw(DrawState state)
 {
 }
예제 #19
0
 public override void Draw(DrawState state)
 {
     base.Draw(state);
 }
예제 #20
0
 public virtual void Draw(DrawState state)
 {
     for (int i = 0; i < objectList.Count; i++)
         objectList[i].Draw(state);
 }
예제 #21
0
 public override void Draw(DrawState state)
 {
     base.Draw(state);
 }
예제 #22
0
 public override void Draw(DrawState state)
 {
     guy.Draw(state);
 }
예제 #23
0
 public override void Draw(DrawState state)
 {
     guy.Draw(state);
 }
예제 #24
0
 public override void Draw(DrawState state)
 {
     background.Draw(state);
 }
예제 #25
0
 public override void Draw(DrawState state)
 {
     statusText.Draw(state);
     statusBar.Draw(state);
 }
예제 #26
0
파일: Rat.cs 프로젝트: warrocky/FightLands
 public override void Draw(DrawState state)
 {
     texture.Draw(state);
 }
예제 #27
0
 public override void Draw(DrawState state)
 {
     statusText.Draw(state);
     statusBar.Draw(state);
 }