public static void ColorPointerEXT(Int32 size, ColorPointerType type, Int32 stride, Int32 count, IntPtr pointer) { Debug.Assert(Delegates.pglColorPointerEXT != null, "pglColorPointerEXT not implemented"); Delegates.pglColorPointerEXT(size, (Int32)type, stride, count, pointer); LogFunction("glColorPointerEXT({0}, {1}, {2}, {3}, 0x{4})", size, type, stride, count, pointer.ToString("X8")); DebugCheckErrors(null); }
public static void SecondaryColorFormatNV(int size, ColorPointerType type, int stride) { Debug.Assert(Delegates.pglSecondaryColorFormatNV != null, "pglSecondaryColorFormatNV not implemented"); Delegates.pglSecondaryColorFormatNV(size, (int)type, stride); LogCommand("glSecondaryColorFormatNV", null, size, type, stride); DebugCheckErrors(null); }
public static void ColorPointerEXT(int size, ColorPointerType type, int stride, int count, IntPtr pointer) { Debug.Assert(Delegates.pglColorPointerEXT != null, "pglColorPointerEXT not implemented"); Delegates.pglColorPointerEXT(size, (int)type, stride, count, pointer); LogCommand("glColorPointerEXT", null, size, type, stride, count, pointer); DebugCheckErrors(null); }
public static void ColorPointer(int size, ColorPointerType type, int stride, IntPtr pointer) { #if USE_OPENGL OpenTK.Graphics.OpenGL.GL.ColorPointer(size, (OpenTK.Graphics.OpenGL.ColorPointerType)type, stride, pointer); #else OpenTK.Graphics.ES11.GL.ColorPointer(size, (OpenTK.Graphics.ES11.All)type, stride, pointer); #endif }
public static void ColorPointerEXT(int size, ColorPointerType type, int stride, int count, object pointer) { GCHandle pin_pointer = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { ColorPointerEXT(size, type, stride, count, pin_pointer.AddrOfPinnedObject()); } finally { pin_pointer.Free(); } }
public void ColorPointer(int size, ColorPointerType type, int stride, byte[] pointer) { unsafe { fixed(byte *pArray = pointer) { ColorPointer(size, type, stride, new IntPtr(pArray)); } } }
public static void ColorPointer(int size, ColorPointerType type, int stride, byte[] pointer) { unsafe { fixed(byte *intPointer = pointer) { ColorPointer(size, type, stride, (IntPtr)intPointer); } } }
public static void ColorPointerListIBM(Int32 size, ColorPointerType type, Int32 stride, IntPtr[] pointer, Int32 ptrstride) { unsafe { fixed(IntPtr *p_pointer = pointer) { Debug.Assert(Delegates.pglColorPointerListIBM != null, "pglColorPointerListIBM not implemented"); Delegates.pglColorPointerListIBM(size, (Int32)type, stride, p_pointer, ptrstride); LogCommand("glColorPointerListIBM", null, size, type, stride, pointer, ptrstride); } } DebugCheckErrors(null); }
public static void ColorPointerListIBM(Int32 size, ColorPointerType type, Int32 stride, IntPtr[] pointer, Int32 ptrstride) { unsafe { fixed(IntPtr *p_pointer = pointer) { Debug.Assert(Delegates.pglColorPointerListIBM != null, "pglColorPointerListIBM not implemented"); Delegates.pglColorPointerListIBM(size, (Int32)type, stride, p_pointer, ptrstride); LogFunction("glColorPointerListIBM({0}, {1}, {2}, {3}, {4})", size, type, stride, LogValue(pointer), ptrstride); } } DebugCheckErrors(null); }
public static void ColorPointer(int size, ColorPointerType type, int stride, byte[] pointer) { #if USE_OPENGL OpenTK.Graphics.OpenGL.GL.ColorPointer(size, (OpenTK.Graphics.OpenGL.ColorPointerType)type, stride, pointer); #else unsafe { fixed(byte *pArray = pointer) { ColorPointer(size, type, stride, new IntPtr(pArray)); } } #endif }
public void ColorPointer(int size, ColorPointerType type, int stride, IntPtr pointer) { if (GlHasBufferObjects || currentArrayBufferIndex == 0) { // we are rending from memory so operate normally glColorPointer(size, (int)type, stride, pointer); } else { unsafe { fixed(byte *buffer = bufferData[currentArrayBufferIndex]) { glColorPointer(size, (int)type, stride, new IntPtr(&buffer[(int)pointer])); } } } }
public static int GetSizeInBytes(ColorPointerType pointerType) { switch (pointerType) { case ColorPointerType.UnsignedByte: return(Byte); case ColorPointerType.Byte: return(SByte); case ColorPointerType.HalfFloat: return(Float); case ColorPointerType.Float: return(Float); case ColorPointerType.Double: return(Double); } throw new NotSupportedException(pointerType + " is not supported for Color pointer"); }
public static void ColorPointer(int size, ColorPointerType type, int stride, IntPtr pointer) { #if USE_OPENGL if (HardwareAvailable) { if (glHasBufferObjects || currentArrayBufferIndex == 0) { // we are rending from memory so operate normaly OpenTK.Graphics.OpenGL.GL.ColorPointer(size, (OpenTK.Graphics.OpenGL.ColorPointerType)type, stride, pointer); } else { unsafe { fixed(byte *buffer = bufferData[currentArrayBufferIndex]) { OpenTK.Graphics.OpenGL.GL.ColorPointer(size, (OpenTK.Graphics.OpenGL.ColorPointerType)type, stride, new IntPtr(&buffer[(int)pointer])); } } } } #else if (glHasBufferObjects || currentArrayBufferIndex == 0) { OpenTK.Graphics.ES11.GL.ColorPointer(size, (OpenTK.Graphics.ES11.All)type, stride, pointer); } else { unsafe { fixed(byte *buffer = bufferData[currentArrayBufferIndex]) { OpenTK.Graphics.ES11.GL.ColorPointer(size, (OpenTK.Graphics.ES11.All)type, stride, new IntPtr(&buffer[(int)pointer])); } } } #endif }
public abstract unsafe void ColorP4([Flow(FlowDirection.In)] ColorPointerType type, [Count(Count = 1), Flow(FlowDirection.In)] uint *color);
public static unsafe extern void ColorPointerListIBM( int size, ColorPointerType type, int stride, void** pointer, int ptrstride );
public static void ColorPointer(int size, ColorPointerType type, int stride, IntPtr pointer) { Instance?.ColorPointer(size, type, stride, pointer); }
public static unsafe extern void ColorPointer( int size, ColorPointerType type, int stride, void* pointer );
public static void ColorPointer(Int32 size, ColorPointerType type, Int32 stride, Object pointer) { GCHandle pin_pointer = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { ColorPointer(size, type, stride, pin_pointer.AddrOfPinnedObject()); } finally { pin_pointer.Free(); } }
public static void ColorPointer(int size, ColorPointerType type, int stride, double[] pointer) { gl.glColorPointer(size, (int)type, stride, pointer); }
public static void ColorPointerListIBM(Int32 size, ColorPointerType type, Int32 stride, IntPtr[] pointer, Int32 ptrstride) { unsafe { fixed (IntPtr* p_pointer = pointer) { Debug.Assert(Delegates.pglColorPointerListIBM != null, "pglColorPointerListIBM not implemented"); Delegates.pglColorPointerListIBM(size, (Int32)type, stride, p_pointer, ptrstride); CallLog("glColorPointerListIBM({0}, {1}, {2}, {3}, {4})", size, type, stride, pointer, ptrstride); } } DebugCheckErrors(); }
public abstract unsafe void SecondaryColorPointer([Flow(FlowDirection.In)] int size, [Flow(FlowDirection.In)] ColorPointerType type, [Flow(FlowDirection.In)] uint stride, [Count(Computed = "size, type, stride"), Flow(FlowDirection.In)] void *pointer);
internal static extern void glColorPointer(Int32 size, ColorPointerType type, Int32 stride, IntPtr pointer);
public static void ColorPointer(int size, ColorPointerType type, int stride, int pointer) { ColorPointer(size, type, stride, (IntPtr)pointer); }
public static unsafe void ColorP4(this ArbVertexType2101010Rev thisApi, [Flow(FlowDirection.In)] ColorPointerType type, [Count(Count = 1), Flow(FlowDirection.In)] ReadOnlySpan <uint> color) { // SpanOverloader thisApi.ColorP4(type, in color.GetPinnableReference()); }
public void ColorPointer(int size, ColorPointerType type, int stride, float[,] pointer) { gl.glColorPointer(size, (int)type, stride, pointer); CheckException(); }
public abstract unsafe void ColorPointerList <T0>([Flow(FlowDirection.In)] int size, [Flow(FlowDirection.In)] ColorPointerType 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;
public abstract unsafe void ColorPointerList([Flow(FlowDirection.In)] int size, [Flow(FlowDirection.In)] ColorPointerType type, [Flow(FlowDirection.In)] int stride, [Count(Computed = "size, type, stride"), Flow(FlowDirection.In)] void **pointer, [Flow(FlowDirection.In)] int ptrstride);
public abstract void SecondaryColorP3([Flow(FlowDirection.In)] ColorPointerType type, [Flow(FlowDirection.In)] uint color);
public abstract void SecondaryColorP3([Flow(FlowDirection.In)] ColorPointerType type, [Count(Count = 1), Flow(FlowDirection.In)] ref uint color);
public static void ColorPointer(int size, ColorPointerType type, int stride, byte[] pointer) { #if USE_OPENGL if (openGlHardwareAvailable) { OpenTK.Graphics.OpenGL.GL.ColorPointer(size, (OpenTK.Graphics.OpenGL.ColorPointerType)type, stride, pointer); } #else unsafe { fixed (byte* pArray = pointer) { ColorPointer(size, type, stride, new IntPtr(pArray)); } } #endif }
public static unsafe void SecondaryColorPointerEXT( int size, ColorPointerType type, int stride, void* pointer ) { if (_SecondaryColorPointerEXT == null) throw new Exception( "Extension method SecondaryColorPointerEXT not found" ); _SecondaryColorPointerEXT( size, type, stride, pointer ); }
public partial void ColorP3([Flow(FlowDirection.In)] ColorPointerType type, [Flow(FlowDirection.In)] uint color);
public abstract void SecondaryColorPointer <T0>([Flow(FlowDirection.In)] int size, [Flow(FlowDirection.In)] ColorPointerType type, [Flow(FlowDirection.In)] uint stride, [Count(Computed = "size, type, stride"), Flow(FlowDirection.In)] ref T0 pointer) where T0 : unmanaged;
public static unsafe void ColorPointer <T0>(this ExtVertexArray thisApi, [Flow(FlowDirection.In)] int size, [Flow(FlowDirection.In)] ColorPointerType 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.ColorPointer(size, type, stride, count, in pointer.GetPinnableReference()); }
public static void ColorPointer(int size, ColorPointerType type, int stride, IntPtr pointer) { #if USE_OPENGL if (openGlHardwareAvailable) { if (glHasBufferObjects || currentArrayBufferIndex == 0) { // we are rending from memory so operate normaly OpenTK.Graphics.OpenGL.GL.ColorPointer(size, (OpenTK.Graphics.OpenGL.ColorPointerType)type, stride, pointer); } else { unsafe { fixed (byte* buffer = bufferData[currentArrayBufferIndex]) { OpenTK.Graphics.OpenGL.GL.ColorPointer(size, (OpenTK.Graphics.OpenGL.ColorPointerType)type, stride, new IntPtr(&buffer[(int)pointer])); } } } } #else if (glHasBufferObjects || currentArrayBufferIndex == 0) { OpenTK.Graphics.ES11.GL.ColorPointer(size, (OpenTK.Graphics.ES11.All)type, stride, pointer); } else { unsafe { fixed (byte* buffer = bufferData[currentArrayBufferIndex]) { OpenTK.Graphics.ES11.GL.ColorPointer(size, (OpenTK.Graphics.ES11.All)type, stride, new IntPtr(&buffer[(int)pointer])); } } } #endif }
public static void ColorPointer(int size, ColorPointerType type, int stride, int offset) { ColorPointer(size, type, stride, (IntPtr)offset); }
public abstract void SecondaryColorFormat([Flow(FlowDirection.In)] int size, [Flow(FlowDirection.In)] ColorPointerType type, [Flow(FlowDirection.In)] uint stride);
public static void VertexArraySecondaryColorOffsetEXT(UInt32 vaobj, UInt32 buffer, Int32 size, ColorPointerType type, Int32 stride, IntPtr offset) { Debug.Assert(Delegates.pglVertexArraySecondaryColorOffsetEXT != null, "pglVertexArraySecondaryColorOffsetEXT not implemented"); Delegates.pglVertexArraySecondaryColorOffsetEXT(vaobj, buffer, size, (Int32)type, stride, offset); CallLog("glVertexArraySecondaryColorOffsetEXT({0}, {1}, {2}, {3}, {4}, 0x{5})", vaobj, buffer, size, type, stride, offset.ToString("X8")); DebugCheckErrors(); }
public static void ColorPointer(Int32 size, ColorPointerType type, Int32 stride, IntPtr pointer) { Debug.Assert(Delegates.pglColorPointer != null, "pglColorPointer not implemented"); Delegates.pglColorPointer(size, (Int32)type, stride, pointer); CallLog("glColorPointer({0}, {1}, {2}, 0x{3})", size, type, stride, pointer.ToString("X8")); DebugCheckErrors(); }
public abstract void ColorP4([Flow(FlowDirection.In)] ColorPointerType type, [Flow(FlowDirection.In)] uint color);
public static void glColorPointer(Int32 size, ColorPointerType type, Int32 stride, IntPtr pointer) { i_OpenGL1_1.glColorPointer(size, type, stride, pointer); }