public override void Draw(DrawState state) { if (reDrawing) camera.Draw(state); texture.Draw(state); }
public static void Draw() { if (baseCamera != null) { DrawState state = new DrawState(); baseCamera.Draw(state); } }
public override void Draw(DrawState state) { lock (textureLoadedLock) { if (textureLoaded) { texture.Draw(state); } } }
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)); }
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)); }
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)); }
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))); }
public override void Draw(DrawState state) { minimap.Draw(state); }
public virtual void Draw(DrawState state) { }
public override void Draw(DrawState state) { Dummy.Draw(state); }
public override void Draw(DrawState state) { texture.Draw(state); }
public override void Draw(DrawState state) { background.Draw(state); }
public override void Draw(DrawState state) { shadowTexture.Draw(state); drawTexture.Draw(state); }
public override void Draw(DrawState state) { base.Draw(state); }
public virtual void Draw(DrawState state) { for (int i = 0; i < objectList.Count; i++) objectList[i].Draw(state); }
public override void Draw(DrawState state) { guy.Draw(state); }
public override void Draw(DrawState state) { statusText.Draw(state); statusBar.Draw(state); }