public override IntBuffer Put(IntBuffer src) { if (src is DirectIntBufferU) { if (src == this) { throw new IllegalArgumentException(); } DirectIntBufferU sb = (DirectIntBufferU)src; int spos = sb.Position(); int slim = sb.Limit(); assert(spos <= slim); int srem = (spos <= slim ? slim - spos : 0); int pos = Position(); int lim = Limit(); assert(pos <= lim); int rem = (pos <= lim ? lim - pos : 0); if (srem > rem) { throw new BufferOverflowException(); } @unsafe.copyMemory(sb.Ix(spos), Ix(pos), (long)srem << 2); sb.Position(spos + srem); Position(pos + srem); } else if (src.Hb != null) { int spos = src.Position(); int slim = src.Limit(); assert(spos <= slim); int srem = (spos <= slim ? slim - spos : 0); Put(src.Hb, src.Offset + spos, srem); src.Position(spos + srem); } else { base.Put(src); } return(this); }
public static void glGetShaderiv(int arg0, int arg1, IntBuffer arg2) { }
public static void glGetRenderbufferParameteriv(int arg0, int arg1, IntBuffer arg2) { }
public static void glGetProgramiv(int arg0, int arg1, IntBuffer arg2) { }
public static void glDeleteRenderbuffers(int arg0, IntBuffer arg1) { }
public override IntBuffer Put(IntBuffer src) { throw new ReadOnlyBufferException(); }
public static void glTexParameteriv(int arg0, int arg1, IntBuffer arg2) { }
public static void glGetVertexAttribiv(int arg0, int arg1, IntBuffer arg2) { }
public static void glGetActiveUniform(int arg0, int arg1, int arg2, IntBuffer arg3, IntBuffer arg4, IntBuffer arg5, sbyte arg6) { }
public static string glGetActiveUniform(int arg0, int arg1, IntBuffer arg2, IntBuffer arg3) { return default(string); }
public static void glGenTextures(int arg0, IntBuffer arg1) { }
public static void glGenRenderbuffers(int arg0, IntBuffer arg1) { }
public static void glGenFramebuffers(int arg0, IntBuffer arg1) { }
public static void glDeleteTextures(int arg0, IntBuffer arg1) { }
public static void glGetShaderPrecisionFormat(int arg0, int arg1, IntBuffer arg2, IntBuffer arg3) { }
public static void glGetShaderSource(int arg0, int arg1, IntBuffer arg2, sbyte arg3) { }
public static void glGetAttachedShaders(int arg0, int arg1, IntBuffer arg2, IntBuffer arg3) { }
public static void glShaderBinary(int arg0, IntBuffer arg1, int arg2, Buffer arg3, int arg4) { }
public static void glGetBooleanv(int arg0, IntBuffer arg1) { }
public static void glUniform4iv(int arg0, int arg1, IntBuffer arg2) { }
public static void glGetFramebufferAttachmentParameteriv(int arg0, int arg1, int arg2, IntBuffer arg3) { }
public static void glGetIntegerv(int arg0, IntBuffer arg1) { }
public static void glDeleteFramebuffers(int arg0, IntBuffer arg1) { }