Ejemplo n.º 1
0
 public VertexAttribute(int coordinateCount, VertexPointerType pointerType, int stride, int offset)
 {
     this.CoordinateCount = coordinateCount;
     this.PointerType     = pointerType;
     this.Stride          = stride;
     this.Offset          = offset;
 }
Ejemplo n.º 2
0
 public static void VertexPointerEXT(Int32 size, VertexPointerType type, Int32 stride, Int32 count, IntPtr pointer)
 {
     Debug.Assert(Delegates.pglVertexPointerEXT != null, "pglVertexPointerEXT not implemented");
     Delegates.pglVertexPointerEXT(size, (Int32)type, stride, count, pointer);
     LogFunction("glVertexPointerEXT({0}, {1}, {2}, {3}, 0x{4})", size, type, stride, count, pointer.ToString("X8"));
     DebugCheckErrors(null);
 }
 public static void VertexFormatNV(int size, VertexPointerType type, int stride)
 {
     Debug.Assert(Delegates.pglVertexFormatNV != null, "pglVertexFormatNV not implemented");
     Delegates.pglVertexFormatNV(size, (int)type, stride);
     LogCommand("glVertexFormatNV", null, size, type, stride);
     DebugCheckErrors(null);
 }
Ejemplo n.º 4
0
 public static void VertexPointerEXT(int size, VertexPointerType type, int stride, int count, IntPtr pointer)
 {
     Debug.Assert(Delegates.pglVertexPointerEXT != null, "pglVertexPointerEXT not implemented");
     Delegates.pglVertexPointerEXT(size, (int)type, stride, count, pointer);
     LogCommand("glVertexPointerEXT", null, size, type, stride, count, pointer);
     DebugCheckErrors(null);
 }
Ejemplo n.º 5
0
 public VertexAttribute(int coordinateCount, VertexPointerType pointerType, int stride, int offset)
 {
     this.CoordinateCount = coordinateCount;
     this.PointerType = pointerType;
     this.Stride = stride;
     this.Offset = offset;
 }
Ejemplo n.º 6
0
        public static void VertexPointer(int size, VertexPointerType type, int stride, IntPtr pointer)
        {
#if USE_OPENGL
            OpenTK.Graphics.OpenGL.GL.VertexPointer(size, (OpenTK.Graphics.OpenGL.VertexPointerType)type, stride, pointer);
#else
            OpenTK.Graphics.ES11.GL.VertexPointer(size, (OpenTK.Graphics.ES11.All)type, stride, pointer);
#endif
        }
Ejemplo n.º 7
0
 public VertexFormatElement(VertexFormatSemantic semantic, VertexPointerType type, byte count, short offset, short divisor = 0)
 {
     Semantic = semantic;
     Type = type;
     Count = count;
     Offset = offset;
     Divisor = divisor;
 }
Ejemplo n.º 8
0
 public VertexPointerInfo(int coordinateCount,
                          VertexPointerType pointerType,
                          int stride,
                          int offset)
 {
     this.coordinateCount = coordinateCount;
     this.pointerType     = pointerType;
     this.stride          = stride;
     this.offset          = offset;
 }
Ejemplo n.º 9
0
 public VertexPointerInfo(int coordinateCount,
     VertexPointerType pointerType,
     int stride,
     int offset)
 {
     this.coordinateCount = coordinateCount;
     this.pointerType = pointerType;
     this.stride = stride;
     this.offset = offset;
 }
Ejemplo n.º 10
0
        public static void VertexPointerEXT(int size, VertexPointerType type, int stride, int count, object pointer)
        {
            GCHandle pin_pointer = GCHandle.Alloc(pointer, GCHandleType.Pinned);

            try {
                VertexPointerEXT(size, type, stride, count, pin_pointer.AddrOfPinnedObject());
            } finally {
                pin_pointer.Free();
            }
        }
Ejemplo n.º 11
0
 public static void VertexPointer(int size, VertexPointerType type, int stride, float[] pointer)
 {
     unsafe
     {
         fixed(float *pArray = pointer)
         {
             VertexPointer(size, type, stride, new IntPtr(pArray));
         }
     }
 }
		public static void VertexPointerINTEL(Int32 size, VertexPointerType type, IntPtr[] pointer)
		{
			unsafe {
				fixed (IntPtr* p_pointer = pointer)
				{
					Debug.Assert(Delegates.pglVertexPointervINTEL != null, "pglVertexPointervINTEL not implemented");
					Delegates.pglVertexPointervINTEL(size, (Int32)type, p_pointer);
					LogFunction("glVertexPointervINTEL({0}, {1}, {2})", size, type, LogValue(pointer));
				}
			}
			DebugCheckErrors(null);
		}
Ejemplo n.º 13
0
 public static void VertexPointerINTEL(Int32 size, VertexPointerType type, IntPtr[] pointer)
 {
     unsafe
     {
         fixed(IntPtr *p_pointer = pointer)
         {
             Debug.Assert(Delegates.pglVertexPointervINTEL != null, "pglVertexPointervINTEL not implemented");
             Delegates.pglVertexPointervINTEL(size, (Int32)type, p_pointer);
             LogFunction("glVertexPointervINTEL({0}, {1}, {2})", size, type, LogValue(pointer));
         }
     }
     DebugCheckErrors(null);
 }
 public static void VertexPointerListIBM(Int32 size, VertexPointerType type, Int32 stride, IntPtr[] pointer, Int32 ptrstride)
 {
     unsafe
     {
         fixed(IntPtr *p_pointer = pointer)
         {
             Debug.Assert(Delegates.pglVertexPointerListIBM != null, "pglVertexPointerListIBM not implemented");
             Delegates.pglVertexPointerListIBM(size, (Int32)type, stride, p_pointer, ptrstride);
             LogFunction("glVertexPointerListIBM({0}, {1}, {2}, {3}, {4})", size, type, stride, LogValue(pointer), ptrstride);
         }
     }
     DebugCheckErrors(null);
 }
 public static void VertexPointerINTEL(Int32 size, VertexPointerType type, IntPtr[] pointer)
 {
     unsafe
     {
         fixed(IntPtr *p_pointer = pointer)
         {
             Debug.Assert(Delegates.pglVertexPointervINTEL != null, "pglVertexPointervINTEL not implemented");
             Delegates.pglVertexPointervINTEL(size, (Int32)type, p_pointer);
             LogCommand("glVertexPointervINTEL", null, size, type, pointer);
         }
     }
     DebugCheckErrors(null);
 }
Ejemplo n.º 16
0
 public static void VertexPointerListIBM(Int32 size, VertexPointerType type, Int32 stride, IntPtr[] pointer, Int32 ptrstride)
 {
     unsafe
     {
         fixed(IntPtr *p_pointer = pointer)
         {
             Debug.Assert(Delegates.pglVertexPointerListIBM != null, "pglVertexPointerListIBM not implemented");
             Delegates.pglVertexPointerListIBM(size, (Int32)type, stride, p_pointer, ptrstride);
             LogCommand("glVertexPointerListIBM", null, size, type, stride, pointer, ptrstride);
         }
     }
     DebugCheckErrors(null);
 }
Ejemplo n.º 17
0
        public static int GetSizeInBytes(VertexPointerType pointerType)
        {
            switch (pointerType)
            {
            case VertexPointerType.Short:
                return(Short);

            case VertexPointerType.Int:
                return(Int);

            case VertexPointerType.HalfFloat:
                return(Float);

            case VertexPointerType.Float:
                return(Float);

            case VertexPointerType.Double:
                return(Double);
            }
            throw new NotSupportedException(pointerType + " is not supported for Vertex pointer");
        }
Ejemplo n.º 18
0
        public static void VertexPointer(int size, VertexPointerType type, int stride, IntPtr pointer)
        {
#if USE_OPENGL
            if (HardwareAvailable)
            {
                if (glHasBufferObjects || currentArrayBufferIndex == 0)
                {
                    OpenTK.Graphics.OpenGL.GL.VertexPointer(size, (OpenTK.Graphics.OpenGL.VertexPointerType)type, stride, pointer);
                }
                else
                {
                    unsafe
                    {
                        fixed(byte *buffer = bufferData[currentArrayBufferIndex])
                        {
                            OpenTK.Graphics.OpenGL.GL.VertexPointer(size, (OpenTK.Graphics.OpenGL.VertexPointerType)type, stride, new IntPtr(&buffer[(int)pointer]));
                        }
                    }
                }
            }
#else
            if (glHasBufferObjects || currentArrayBufferIndex == 0)
            {
                OpenTK.Graphics.ES11.GL.VertexPointer(size, (OpenTK.Graphics.ES11.All)type, stride, pointer);
            }
            else
            {
                unsafe
                {
                    fixed(byte *buffer = bufferData[currentArrayBufferIndex])
                    {
                        OpenTK.Graphics.ES11.GL.VertexPointer(size, (OpenTK.Graphics.ES11.All)type, stride, new IntPtr(&buffer[(int)pointer]));
                    }
                }
            }
#endif
        }
 public static unsafe void VertexPointerEXT( int size, VertexPointerType type, int stride, int count, void* pointer )
 {
     if (_VertexPointerEXT == null) throw new Exception( "Extension method VertexPointerEXT not found" );
      _VertexPointerEXT( size, type, stride, count, pointer );
 }
Ejemplo n.º 20
0
		public static void VertexPointer(int size, VertexPointerType type, int stride, float[] pointer)
		{
			unsafe
			{
				fixed (float* pArray = pointer)
				{
					VertexPointer(size, type, stride, new IntPtr(pArray));
				}
			}
		}
Ejemplo n.º 21
0
		public static void VertexPointerEXT(Int32 size, VertexPointerType type, Int32 stride, Int32 count, IntPtr pointer)
		{
			Debug.Assert(Delegates.pglVertexPointerEXT != null, "pglVertexPointerEXT not implemented");
			Delegates.pglVertexPointerEXT(size, (Int32)type, stride, count, pointer);
			CallLog("glVertexPointerEXT({0}, {1}, {2}, {3}, 0x{4})", size, type, stride, count, pointer.ToString("X8"));
			DebugCheckErrors();
		}
Ejemplo n.º 22
0
 public abstract void VertexP4([Flow(FlowDirection.In)] VertexPointerType type, [Flow(FlowDirection.In)] uint value);
Ejemplo n.º 23
0
 public abstract void VertexP4([Flow(FlowDirection.In)] VertexPointerType type, [Count(Count = 1), Flow(FlowDirection.In)] ref uint value);
Ejemplo n.º 24
0
 public void VertexPointer(int size, VertexPointerType type, int stride, object pointer)
 {
     gl.glVertexPointer(size, (int)type, stride, pointer);
     CheckException();
 }
Ejemplo n.º 25
0
		public static void VertexPointer(Int32 size, VertexPointerType type, Int32 stride, IntPtr pointer)
		{
			Debug.Assert(Delegates.pglVertexPointer != null, "pglVertexPointer not implemented");
			Delegates.pglVertexPointer(size, (Int32)type, stride, pointer);
			LogFunction("glVertexPointer({0}, {1}, {2}, 0x{3})", size, type, stride, pointer.ToString("X8"));
			DebugCheckErrors(null);
		}
Ejemplo n.º 26
0
 public abstract unsafe void VertexPointerList([Flow(FlowDirection.In)] int size, [Flow(FlowDirection.In)] VertexPointerType type, [Flow(FlowDirection.In)] int stride, [Count(Computed = "size, type, stride"), Flow(FlowDirection.In)] void **pointer, [Flow(FlowDirection.In)] int ptrstride);
Ejemplo n.º 27
0
 public abstract unsafe void VertexPointerList <T0>([Flow(FlowDirection.In)] int size, [Flow(FlowDirection.In)] VertexPointerType type, [Flow(FlowDirection.In)] int stride, [Count(Computed = "size, type, stride"), Flow(FlowDirection.In)] ref T0 *pointer, [Flow(FlowDirection.In)] int ptrstride) where T0 : unmanaged;
Ejemplo n.º 28
0
 public VertexAttribute(int coordinateCount, VertexPointerType pointerType)
     : this(coordinateCount, pointerType, 0, 0)
 {
 }
Ejemplo n.º 29
0
 public VertexAttribute(int coordinateCount, VertexPointerType pointerType)
     : this(coordinateCount, pointerType, 0, 0)
 {
 }
Ejemplo n.º 30
0
		public static void VertexPointer(Int32 size, VertexPointerType type, Int32 stride, Object pointer)
		{
			GCHandle pin_pointer = GCHandle.Alloc(pointer, GCHandleType.Pinned);
			try {
				VertexPointer(size, type, stride, pin_pointer.AddrOfPinnedObject());
			} finally {
				pin_pointer.Free();
			}
		}
Ejemplo n.º 31
0
		public static void TexCoordPointerINTEL(Int32 size, VertexPointerType type, IntPtr[] pointer)
		{
			unsafe {
				fixed (IntPtr* p_pointer = pointer)
				{
					Debug.Assert(Delegates.pglTexCoordPointervINTEL != null, "pglTexCoordPointervINTEL not implemented");
					Delegates.pglTexCoordPointervINTEL(size, (Int32)type, p_pointer);
					CallLog("glTexCoordPointervINTEL({0}, {1}, {2})", size, type, pointer);
				}
			}
			DebugCheckErrors();
		}
 public static unsafe extern void VertexPointerListIBM( int size, VertexPointerType type, int stride, void** pointer, int ptrstride );
Ejemplo n.º 33
0
 public static void VertexPointer(int size, VertexPointerType type, int stride, IntPtr pointer)
 {
     Instance?.VertexPointer(size, type, stride, pointer);
 }
Ejemplo n.º 34
0
 public static void glVertexPointer(Int32 size, VertexPointerType type, Int32 stride, IntPtr pointer)
 {
     i_OpenGL1_1.glVertexPointer(size, type, stride, pointer);
 }
Ejemplo n.º 35
0
 public static void VertexPointer(int size, VertexPointerType type, int stride, int offset)
 {
     VertexPointer(size, type, stride, (IntPtr)offset);
 }
Ejemplo n.º 36
0
 public static void VertexPointer(int size, VertexPointerType type, int stride, int pointer)
 {
     VertexPointer(size, type, stride, (IntPtr)pointer);
 }
Ejemplo n.º 37
0
 public abstract unsafe void VertexP4([Flow(FlowDirection.In)] VertexPointerType type, [Count(Count = 1), Flow(FlowDirection.In)] uint *value);
Ejemplo n.º 38
0
		internal static extern void glVertexPointer(Int32 size, VertexPointerType type, Int32 stride, IntPtr pointer);
		public static void VertexPointerListIBM(Int32 size, VertexPointerType type, Int32 stride, IntPtr[] pointer, Int32 ptrstride)
		{
			unsafe {
				fixed (IntPtr* p_pointer = pointer)
				{
					Debug.Assert(Delegates.pglVertexPointerListIBM != null, "pglVertexPointerListIBM not implemented");
					Delegates.pglVertexPointerListIBM(size, (Int32)type, stride, p_pointer, ptrstride);
					CallLog("glVertexPointerListIBM({0}, {1}, {2}, {3}, {4})", size, type, stride, pointer, ptrstride);
				}
			}
			DebugCheckErrors();
		}
Ejemplo n.º 40
0
 public void VertexPointer(int size, VertexPointerType type, int stride, IntPtr pointer)
 {
     glVertexPointer(size, (int)type, stride, pointer);
 }
Ejemplo n.º 41
0
 public static void VertexPointer(int size, VertexPointerType type, int stride, int pointer)
 {
     VertexPointer(size, type, stride, (IntPtr)pointer);
 }
Ejemplo n.º 42
0
 public static unsafe extern void VertexPointer( int size, VertexPointerType type, int stride, void* pointer );
 public static unsafe void VertexPointer <T0>(this ExtVertexArray thisApi, [Flow(FlowDirection.In)] int size, [Flow(FlowDirection.In)] VertexPointerType type, [Flow(FlowDirection.In)] uint stride, [Flow(FlowDirection.In)] uint count, [Count(Computed = "size, type, stride, count"), Flow(FlowDirection.In)] ReadOnlySpan <T0> pointer) where T0 : unmanaged
 {
     // SpanOverloader
     thisApi.VertexPointer(size, type, stride, count, in pointer.GetPinnableReference());
 }
Ejemplo n.º 44
0
 internal static extern void glVertexPointer(Int32 size, VertexPointerType type, Int32 stride, IntPtr pointer);
Ejemplo n.º 45
0
		public static void VertexPointer(int size, VertexPointerType type, int stride, IntPtr pointer)
		{
#if USE_OPENGL
			if (openGlHardwareAvailable)
			{
				if (glHasBufferObjects || currentArrayBufferIndex == 0)
				{
					OpenTK.Graphics.OpenGL.GL.VertexPointer(size, (OpenTK.Graphics.OpenGL.VertexPointerType)type, stride, pointer);
				}
				else
				{
					unsafe
					{
						fixed (byte* buffer = bufferData[currentArrayBufferIndex])
						{
							OpenTK.Graphics.OpenGL.GL.VertexPointer(size, (OpenTK.Graphics.OpenGL.VertexPointerType)type, stride, new IntPtr(&buffer[(int)pointer]));
						}
					}
				}
			}
#else
			if (glHasBufferObjects || currentArrayBufferIndex == 0)
			{
				OpenTK.Graphics.ES11.GL.VertexPointer(size, (OpenTK.Graphics.ES11.All)type, stride, pointer);
			}
			else
			{
				unsafe
				{
					fixed (byte* buffer = bufferData[currentArrayBufferIndex])
					{
						OpenTK.Graphics.ES11.GL.VertexPointer(size, (OpenTK.Graphics.ES11.All)type, stride, new IntPtr(&buffer[(int)pointer]));
					}
				}
			}
#endif
		}
Ejemplo n.º 46
0
 public static void VertexPointer(int size, VertexPointerType type, int stride, int offset)
 {
     VertexPointer(size, type, stride, (IntPtr)offset);
 }
 public abstract void VertexFormat([Flow(FlowDirection.In)] int size, [Flow(FlowDirection.In)] VertexPointerType type, [Flow(FlowDirection.In)] uint stride);
Ejemplo n.º 48
0
 public abstract unsafe void ColorPointer([Flow(FlowDirection.In)] int size, [Flow(FlowDirection.In)] VertexPointerType type, [Count(Count = 4), Flow(FlowDirection.In)] void **pointer);
 public static unsafe extern void VertexPointervINTEL( int size, VertexPointerType type, void** pointer );
		public static void VertexArrayVertexOffsetEXT(UInt32 vaobj, UInt32 buffer, Int32 size, VertexPointerType type, Int32 stride, IntPtr offset)
		{
			Debug.Assert(Delegates.pglVertexArrayVertexOffsetEXT != null, "pglVertexArrayVertexOffsetEXT not implemented");
			Delegates.pglVertexArrayVertexOffsetEXT(vaobj, buffer, size, (Int32)type, stride, offset);
			CallLog("glVertexArrayVertexOffsetEXT({0}, {1}, {2}, {3}, {4}, 0x{5})", vaobj, buffer, size, type, stride, offset.ToString("X8"));
			DebugCheckErrors();
		}
Ejemplo n.º 51
0
 public static unsafe void VertexP4(this ArbVertexType2101010Rev thisApi, [Flow(FlowDirection.In)] VertexPointerType type, [Count(Count = 1), Flow(FlowDirection.In)] ReadOnlySpan <uint> value)
 {
     // SpanOverloader
     thisApi.VertexP4(type, in value.GetPinnableReference());
 }
Ejemplo n.º 52
0
 public static void VertexPointer(int size, VertexPointerType type, int stride, IntPtr pointer)
 {
     gl.glVertexPointer(size, (int)type, stride, pointer);
 }