internal override void Draw(FrameEventArgs e) { GraphicsManager.PushMatrix(); BeginOrtho(Viewport.Width, Viewport.Height); GL.Scale(Zoom, Zoom, 1); if (Centered) { GL.Translate((Viewport.Width / 2) / Zoom, (Viewport.Height / 2) / Zoom, 0); } GL.Translate(-Position.X, -Position.Y, 0); if (OnRender != null) { OnRender(e); } GraphicsManager.PopMatrix(); }
public override void Draw(Vector2d Position, Vector2d Size) { GraphicsManager.DrawRectangle(Position.X, Position.Y, Size.X, Size.Y, this); }