public HeadUpDisplay() { player = World.Instance.Player; for (int i = 0; i < labels.Length; i++) { labels[i] = new Label(); labels[i].Color = new Vector4(1f, 1f, 0.2f, 1); } t.StartDrawingColoredQuads(); Vector4 Color1 = new Vector4(0.1f, 0.1f, 0.1f, 1); t.AddVertexWithColor(new Vector4(0, 0, 0f, 1f), Color1); t.AddVertexWithColor(new Vector4(0, 1, 0f, 1f), Color1); t.AddVertexWithColor(new Vector4(1, 1, 0f, 1f), Color1); t.AddVertexWithColor(new Vector4(1, 0, 0f, 1f), Color1); background = t.GetVertexBuffer(); }
public override void Dispose() { base.Dispose(); label.Dispose(); label = null; }