public ContextDepthStencilBindings(IContext context) { Front = new ContextDepthStencilSideBindings(context, (int)All.Front); Back = new ContextDepthStencilSideBindings(context, (int)All.Back); DepthTestEnable = new EnableCapBinding(context, EnableCap.DepthTest); DepthMask = new Binding <bool>(context, (c, x) => c.GL.DepthMask(x)); DepthFunc = new Binding <DepthFunction>(context, (c, x) => c.GL.DepthFunc((int)x)); StencilTestEnable = new EnableCapBinding(context, EnableCap.StencilTest); }
public ContextDepthStencilBindings(IContext context) { Front = new ContextDepthStencilSideBindings(context, (int)All.Front); Back = new ContextDepthStencilSideBindings(context, (int)All.Back); DepthTestEnable = new EnableCapBinding(context, EnableCap.DepthTest); DepthMask = new Binding<bool>(context, (c, x) => c.GL.DepthMask(x)); DepthFunc = new Binding<DepthFunction>(context, (c, x) => c.GL.DepthFunc((int)x)); StencilTestEnable = new EnableCapBinding(context, EnableCap.StencilTest); }