Skip to content

GLDrawSink.FrameScope

StructChartGuruChartGuru
public struct GLDrawSink.FrameScope

Disposable scope returned from ChartGuru.GLDrawSink.BeginFrame(UnityEngine.Rect%2cSystem.Single). Disposing it pops the GL pixel matrix, matching the pre-sink GL.PushMatrix/ GL.PopMatrix pairing at the top of ChartRenderer.RenderGL.

public readonly float Scale

Render scale passed in from the owner - convenience, does not affect GL state.

Returns

System.Single

public void Dispose()

Releases resources owned by this Frame Scope; callers should not use the instance afterward.