コード例 #1
0
 public VertexAttribute(int coordinateCount, VertexPointerType pointerType, int stride, int offset)
 {
     this.CoordinateCount = coordinateCount;
     this.PointerType     = pointerType;
     this.Stride          = stride;
     this.Offset          = offset;
 }
コード例 #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);
 }
コード例 #3
0
 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);
 }
コード例 #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);
 }
コード例 #5
0
ファイル: VertexAttribute.cs プロジェクト: Grimston/ezterrain
 public VertexAttribute(int coordinateCount, VertexPointerType pointerType, int stride, int offset)
 {
     this.CoordinateCount = coordinateCount;
     this.PointerType = pointerType;
     this.Stride = stride;
     this.Offset = offset;
 }
コード例 #6
0
ファイル: GL.cs プロジェクト: asmboom/PixelFarm
        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
        }
コード例 #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;
 }
コード例 #8
0
 public VertexPointerInfo(int coordinateCount,
                          VertexPointerType pointerType,
                          int stride,
                          int offset)
 {
     this.coordinateCount = coordinateCount;
     this.pointerType     = pointerType;
     this.stride          = stride;
     this.offset          = offset;
 }
コード例 #9
0
 public VertexPointerInfo(int coordinateCount,
     VertexPointerType pointerType,
     int stride,
     int offset)
 {
     this.coordinateCount = coordinateCount;
     this.pointerType = pointerType;
     this.stride = stride;
     this.offset = offset;
 }
コード例 #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();
            }
        }
コード例 #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));
         }
     }
 }
コード例 #12
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);
		}
コード例 #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);
 }
コード例 #14
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);
             LogFunction("glVertexPointerListIBM({0}, {1}, {2}, {3}, {4})", size, type, stride, LogValue(pointer), ptrstride);
         }
     }
     DebugCheckErrors(null);
 }
コード例 #15
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);
             LogCommand("glVertexPointervINTEL", null, size, type, pointer);
         }
     }
     DebugCheckErrors(null);
 }
コード例 #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);
 }
コード例 #17
0
ファイル: SizeInBytes.cs プロジェクト: slagusev/Sharp.Engine
        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");
        }
コード例 #18
0
ファイル: GL.cs プロジェクト: sanyaade-3dprinting/agg-sharp
        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
        }
コード例 #19
0
 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 );
 }
コード例 #20
0
ファイル: GL.cs プロジェクト: CNCBrasil/agg-sharp
		public static void VertexPointer(int size, VertexPointerType type, int stride, float[] pointer)
		{
			unsafe
			{
				fixed (float* pArray = pointer)
				{
					VertexPointer(size, type, stride, new IntPtr(pArray));
				}
			}
		}
コード例 #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();
		}
コード例 #22
0
 public abstract void VertexP4([Flow(FlowDirection.In)] VertexPointerType type, [Flow(FlowDirection.In)] uint value);
コード例 #23
0
 public abstract void VertexP4([Flow(FlowDirection.In)] VertexPointerType type, [Count(Count = 1), Flow(FlowDirection.In)] ref uint value);
コード例 #24
0
 public void VertexPointer(int size, VertexPointerType type, int stride, object pointer)
 {
     gl.glVertexPointer(size, (int)type, stride, pointer);
     CheckException();
 }
コード例 #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);
		}
コード例 #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);
コード例 #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;
コード例 #28
0
ファイル: VertexAttribute.cs プロジェクト: Grimston/ezterrain
 public VertexAttribute(int coordinateCount, VertexPointerType pointerType)
     : this(coordinateCount, pointerType, 0, 0)
 {
 }
コード例 #29
0
 public VertexAttribute(int coordinateCount, VertexPointerType pointerType)
     : this(coordinateCount, pointerType, 0, 0)
 {
 }
コード例 #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();
			}
		}
コード例 #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();
		}
コード例 #32
0
 public static unsafe extern void VertexPointerListIBM( int size, VertexPointerType type, int stride, void** pointer, int ptrstride );
コード例 #33
0
 public static void VertexPointer(int size, VertexPointerType type, int stride, IntPtr pointer)
 {
     Instance?.VertexPointer(size, type, stride, pointer);
 }
コード例 #34
0
 public static void glVertexPointer(Int32 size, VertexPointerType type, Int32 stride, IntPtr pointer)
 {
     i_OpenGL1_1.glVertexPointer(size, type, stride, pointer);
 }
コード例 #35
0
ファイル: GLHelper.cs プロジェクト: praeclarum/xamarin-macios
 public static void VertexPointer(int size, VertexPointerType type, int stride, int offset)
 {
     VertexPointer(size, type, stride, (IntPtr)offset);
 }
コード例 #36
0
 public static void VertexPointer(int size, VertexPointerType type, int stride, int pointer)
 {
     VertexPointer(size, type, stride, (IntPtr)pointer);
 }
コード例 #37
0
 public abstract unsafe void VertexP4([Flow(FlowDirection.In)] VertexPointerType type, [Count(Count = 1), Flow(FlowDirection.In)] uint *value);
コード例 #38
0
ファイル: GLCore.cs プロジェクト: nagyist/Pencil.Gaming
		internal static extern void glVertexPointer(Int32 size, VertexPointerType type, Int32 stride, IntPtr pointer);
コード例 #39
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);
					CallLog("glVertexPointerListIBM({0}, {1}, {2}, {3}, {4})", size, type, stride, pointer, ptrstride);
				}
			}
			DebugCheckErrors();
		}
コード例 #40
0
ファイル: GlfwGL.cs プロジェクト: lamest/agg-sharp
 public void VertexPointer(int size, VertexPointerType type, int stride, IntPtr pointer)
 {
     glVertexPointer(size, (int)type, stride, pointer);
 }
コード例 #41
0
 public static void VertexPointer(int size, VertexPointerType type, int stride, int pointer)
 {
     VertexPointer(size, type, stride, (IntPtr)pointer);
 }
コード例 #42
0
 public static unsafe extern void VertexPointer( int size, VertexPointerType type, int stride, void* pointer );
コード例 #43
0
 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());
 }
コード例 #44
0
 internal static extern void glVertexPointer(Int32 size, VertexPointerType type, Int32 stride, IntPtr pointer);
コード例 #45
0
ファイル: GL.cs プロジェクト: CNCBrasil/agg-sharp
		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
		}
コード例 #46
0
ファイル: GLHelper.cs プロジェクト: KarjamP/SDL2-CS
 public static void VertexPointer(int size, VertexPointerType type, int stride, int offset)
 {
     VertexPointer(size, type, stride, (IntPtr)offset);
 }
コード例 #47
0
 public abstract void VertexFormat([Flow(FlowDirection.In)] int size, [Flow(FlowDirection.In)] VertexPointerType type, [Flow(FlowDirection.In)] uint stride);
コード例 #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);
コード例 #49
0
 public static unsafe extern void VertexPointervINTEL( int size, VertexPointerType type, void** pointer );
コード例 #50
0
		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();
		}
コード例 #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());
 }
コード例 #52
0
ファイル: GL.cs プロジェクト: Wiladams/NewTOAPIA
 public static void VertexPointer(int size, VertexPointerType type, int stride, IntPtr pointer)
 {
     gl.glVertexPointer(size, (int)type, stride, pointer);
 }