Пример #1
0
 public static void IndexPointerEXT(IndexPointerType type, int stride, int count, IntPtr pointer)
 {
     Debug.Assert(Delegates.pglIndexPointerEXT != null, "pglIndexPointerEXT not implemented");
     Delegates.pglIndexPointerEXT((int)type, stride, count, pointer);
     LogCommand("glIndexPointerEXT", null, type, stride, count, pointer);
     DebugCheckErrors(null);
 }
Пример #2
0
 public static void IndexPointerEXT(IndexPointerType type, Int32 stride, Int32 count, IntPtr pointer)
 {
     Debug.Assert(Delegates.pglIndexPointerEXT != null, "pglIndexPointerEXT not implemented");
     Delegates.pglIndexPointerEXT((Int32)type, stride, count, pointer);
     LogFunction("glIndexPointerEXT({0}, {1}, {2}, 0x{3})", type, stride, count, pointer.ToString("X8"));
     DebugCheckErrors(null);
 }
Пример #3
0
        public static void IndexPointerEXT(IndexPointerType type, int stride, int count, object pointer)
        {
            GCHandle pin_pointer = GCHandle.Alloc(pointer, GCHandleType.Pinned);

            try {
                IndexPointerEXT(type, stride, count, pin_pointer.AddrOfPinnedObject());
            } finally {
                pin_pointer.Free();
            }
        }
 public static void IndexPointerListIBM(IndexPointerType type, Int32 stride, IntPtr[] pointer, Int32 ptrstride)
 {
     unsafe
     {
         fixed(IntPtr *p_pointer = pointer)
         {
             Debug.Assert(Delegates.pglIndexPointerListIBM != null, "pglIndexPointerListIBM not implemented");
             Delegates.pglIndexPointerListIBM((Int32)type, stride, p_pointer, ptrstride);
             LogFunction("glIndexPointerListIBM({0}, {1}, {2}, {3})", type, stride, LogValue(pointer), ptrstride);
         }
     }
     DebugCheckErrors(null);
 }
 public static void IndexPointerListIBM(IndexPointerType type, Int32 stride, IntPtr[] pointer, Int32 ptrstride)
 {
     unsafe
     {
         fixed(IntPtr *p_pointer = pointer)
         {
             Debug.Assert(Delegates.pglIndexPointerListIBM != null, "pglIndexPointerListIBM not implemented");
             Delegates.pglIndexPointerListIBM((Int32)type, stride, p_pointer, ptrstride);
             LogCommand("glIndexPointerListIBM", null, type, stride, pointer, ptrstride);
         }
     }
     DebugCheckErrors(null);
 }
Пример #6
0
        public void IndexPointer(IndexPointerType type, int stride, IntPtr pointer)
        {
#if USE_OPENGL
            if (HardwareAvailable)
            {
                if (glHasBufferObjects || currentArrayBufferIndex == 0)
                {
                    OpenTK.Graphics.OpenGL.GL.IndexPointer((OpenTK.Graphics.OpenGL.IndexPointerType)type, stride, pointer);
                }
                else
                {
                    unsafe
                    {
                        fixed(byte *buffer = bufferData[currentArrayBufferIndex])
                        {
                            OpenTK.Graphics.OpenGL.GL.IndexPointer((OpenTK.Graphics.OpenGL.IndexPointerType)type, stride, new IntPtr(&buffer[(int)pointer]));
                        }
                    }
                }
            }
#endif
        }
 public static unsafe void IndexPointerEXT( IndexPointerType type, int stride, int count, void* pointer )
 {
     if (_IndexPointerEXT == null) throw new Exception( "Extension method IndexPointerEXT not found" );
      _IndexPointerEXT( type, stride, count, pointer );
 }
Пример #8
0
 public static void IndexPointer(IndexPointerType type, int stride, int pointer)
 {
     IndexPointer(type, stride, (IntPtr)pointer);
 }
Пример #9
0
		internal static extern void glIndexPointer(IndexPointerType type, Int32 stride, IntPtr pointer);
		public static void IndexPointerListIBM(IndexPointerType type, Int32 stride, IntPtr[] pointer, Int32 ptrstride)
		{
			unsafe {
				fixed (IntPtr* p_pointer = pointer)
				{
					Debug.Assert(Delegates.pglIndexPointerListIBM != null, "pglIndexPointerListIBM not implemented");
					Delegates.pglIndexPointerListIBM((Int32)type, stride, p_pointer, ptrstride);
					CallLog("glIndexPointerListIBM({0}, {1}, {2}, {3})", type, stride, pointer, ptrstride);
				}
			}
			DebugCheckErrors();
		}
Пример #11
0
 public void IndexPointer(IndexPointerType type, int stride, IntPtr pointer)
 {
     glIndexPointer((int)type, stride, pointer);
 }
Пример #12
0
		public static void IndexPointer(IndexPointerType type, Int32 stride, Object pointer)
		{
			GCHandle pin_pointer = GCHandle.Alloc(pointer, GCHandleType.Pinned);
			try {
				IndexPointer(type, stride, pin_pointer.AddrOfPinnedObject());
			} finally {
				pin_pointer.Free();
			}
		}
		public static void VertexArrayIndexOffsetEXT(UInt32 vaobj, UInt32 buffer, IndexPointerType type, Int32 stride, IntPtr offset)
		{
			Debug.Assert(Delegates.pglVertexArrayIndexOffsetEXT != null, "pglVertexArrayIndexOffsetEXT not implemented");
			Delegates.pglVertexArrayIndexOffsetEXT(vaobj, buffer, (Int32)type, stride, offset);
			CallLog("glVertexArrayIndexOffsetEXT({0}, {1}, {2}, {3}, 0x{4})", vaobj, buffer, type, stride, offset.ToString("X8"));
			DebugCheckErrors();
		}
Пример #14
0
 public static void IndexPointer(IndexPointerType type, int stride, IntPtr pointer)
 {
     gl.glIndexPointer((int)type, stride, pointer);
 }
Пример #15
0
		public static void IndexPointer(IndexPointerType type, Int32 stride, IntPtr pointer)
		{
			Debug.Assert(Delegates.pglIndexPointer != null, "pglIndexPointer not implemented");
			Delegates.pglIndexPointer((Int32)type, stride, pointer);
			LogFunction("glIndexPointer({0}, {1}, 0x{2})", type, stride, pointer.ToString("X8"));
			DebugCheckErrors(null);
		}
 public static unsafe extern void IndexPointerListIBM( IndexPointerType type, int stride, void** pointer, int ptrstride );
Пример #17
0
		public static void IndexPointerEXT(IndexPointerType type, Int32 stride, Int32 count, IntPtr pointer)
		{
			Debug.Assert(Delegates.pglIndexPointerEXT != null, "pglIndexPointerEXT not implemented");
			Delegates.pglIndexPointerEXT((Int32)type, stride, count, pointer);
			CallLog("glIndexPointerEXT({0}, {1}, {2}, 0x{3})", type, stride, count, pointer.ToString("X8"));
			DebugCheckErrors();
		}
Пример #18
0
 public static void glIndexPointer(IndexPointerType type, Int32 stride, IntPtr pointer)
 {
     i_OpenGL1_1.glIndexPointer(type, stride, pointer);
 }
Пример #19
0
 internal static extern void glIndexPointer(IndexPointerType type, Int32 stride, IntPtr pointer);
Пример #20
0
 public static void IndexPointer(IndexPointerType type, int stride, int pointer)
 {
     IndexPointer(type, stride, (IntPtr)pointer);
 }
Пример #21
0
 public static void IndexPointer(IndexPointerType type, int stride, int offset)
 {
     IndexPointer(type, stride, (IntPtr)offset);
 }
Пример #22
0
 public static void IndexPointer(IndexPointerType type, int stride, IntPtr pointer)
 {
     Instance?.IndexPointer(type, stride, pointer);
 }
Пример #23
0
 public static void IndexPointer(IndexPointerType type, int stride, int offset)
 {
     IndexPointer(type, stride, (IntPtr)offset);
 }
Пример #24
0
 public abstract void IndexPointer <T0>([Flow(FlowDirection.In)] IndexPointerType type, [Flow(FlowDirection.In)] uint stride, [Flow(FlowDirection.In)] uint count, [Count(Computed = "type, stride, count"), Flow(FlowDirection.In)] ref T0 pointer) where T0 : unmanaged;
Пример #25
0
 public abstract unsafe void IndexPointerList([Flow(FlowDirection.In)] IndexPointerType type, [Flow(FlowDirection.In)] int stride, [Count(Computed = "type, stride"), Flow(FlowDirection.In)] void **pointer, [Flow(FlowDirection.In)] int ptrstride);
Пример #26
0
 public static unsafe extern void IndexPointer( IndexPointerType type, int stride, void* pointer );
 public static unsafe void IndexPointer <T0>(this ExtVertexArray thisApi, [Flow(FlowDirection.In)] IndexPointerType type, [Flow(FlowDirection.In)] uint stride, [Flow(FlowDirection.In)] uint count, [Count(Computed = "type, stride, count"), Flow(FlowDirection.In)] ReadOnlySpan <T0> pointer) where T0 : unmanaged
 {
     // SpanOverloader
     thisApi.IndexPointer(type, stride, count, in pointer.GetPinnableReference());
 }
Пример #28
0
 public abstract unsafe void IndexPointerList <T0>([Flow(FlowDirection.In)] IndexPointerType type, [Flow(FlowDirection.In)] int stride, [Count(Computed = "type, stride"), Flow(FlowDirection.In)] ref T0 *pointer, [Flow(FlowDirection.In)] int ptrstride) where T0 : unmanaged;
Пример #29
0
        //public void IndexPointer(IndexPointerType type, int stride, short[] pointer)
        //{
        //    gl.glIndexPointer((int)type, stride, pointer);
        //    CheckException();
        //}

        //public void IndexPointer(IndexPointerType type, int stride, int[] pointer)
        //{
        //    gl.glIndexPointer((int)type, stride, pointer);
        //    CheckException();
        //}

        //public void IndexPointer(IndexPointerType type, int stride, float[] pointer)
        //{
        //    gl.glIndexPointer((int)type, stride, pointer);
        //    CheckException();
        //}

        //public void IndexPointer(IndexPointerType type, int stride, double[] pointer)
        //{
        //    gl.glIndexPointer((int)type, stride, pointer);
        //    CheckException();
        //}

        public void IndexPointer(IndexPointerType type, int stride, IntPtr pointer)
        {
            gl.glIndexPointer((int)type, stride, pointer);
            CheckException();
        }
Пример #30
0
 public abstract unsafe void IndexPointer([Flow(FlowDirection.In)] IndexPointerType type, [Flow(FlowDirection.In)] uint stride, [Flow(FlowDirection.In)] uint count, [Count(Computed = "type, stride, count"), Flow(FlowDirection.In)] void *pointer);