internal void Dispatch(ref RenderContext context) { GL.PushDebugGroup(DebugSourceExternal.DebugSourceApplication, 0, name.Length, name); renderAction(ref context); renderAction = null; GL.PopDebugGroup(); }
public RenderCommand(string name, RenderCommandAction renderAction) { this.name = name; this.renderAction = renderAction; }