Exemplo n.º 1
0
 internal VertexArrayLock(VertexArray array)
 {
     this.context = Context.Lock();
     this.array = array;
     GL.GetInteger(GetPName.VertexArrayBinding, out was);
     GL.BindVertexArray(array.Id);
 }
Exemplo n.º 2
0
 internal VertexArrayLock(VertexArray array)
 {
     this.context = Context.Lock();
     this.array   = array;
     GL.GetInteger(GetPName.VertexArrayBinding, out was);
     GL.BindVertexArray(array.Id);
 }
Exemplo n.º 3
0
		internal ProgramBinding(Program program) {
			contextLock = Context.Lock();
			GL.UseProgram(program.Id);
			Context.CheckError();
		}
Exemplo n.º 4
0
 public BufferLock(BaseBuffer buffer, BufferTarget?target = null)
 {
     sharedLock = Context.Lock();
     GL.BindBuffer(target.GetValueOrDefault(buffer.Target), buffer.Id);
 }