public override void BeginDraw(Renderer r) { _material = r.GetMaterial("circle"); GL.Enable(EnableCap.Blend); GL.Disable(EnableCap.Texture2D); GL.BindTexture(TextureTarget.Texture2D, 0); _material.Bind(); float cx = X - r.Backgrounds[0].HScroll; float cy = Y - r.Backgrounds[0].VScroll; Vector3 p = new Vector3(cx,cy,Radius); _material.Uniform3("circle", ref p); Vector2 le = new Vector2(_thickness/2.0f,-_thickness/2.0f-_aawidth); Vector2 he = new Vector2(_thickness/2.0f+_aawidth,-_thickness/2.0f); _material.Uniform2("lowedge", ref le); _material.Uniform2("highedge", ref he); _material.Color4("color", ref Color); }