public static void BindTransformFeedbackNV(BufferTargetARB target, UInt32 id)
		{
			Debug.Assert(Delegates.pglBindTransformFeedbackNV != null, "pglBindTransformFeedbackNV not implemented");
			Delegates.pglBindTransformFeedbackNV((Int32)target, id);
			LogFunction("glBindTransformFeedbackNV({0}, {1})", target, id);
			DebugCheckErrors(null);
		}
 public abstract unsafe void BufferSubData([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] IntPtr offset, [Flow(FlowDirection.In)] UIntPtr size, [Count(Parameter = "size"), Flow(FlowDirection.In)] void *data);
Ejemplo n.º 3
0
 /// <summary>
 /// To be added.
 /// </summary>
 /// <param name="target">
 /// To be added.
 /// </param>
 /// <param name="offset">
 /// To be added.
 /// </param>
 /// <param name="size">
 /// To be added.
 /// </param>
 /// <param name="data">
 /// To be added.
 /// This parameter's element count is taken from size.
 /// </param>
 public unsafe void GetBufferSubData([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] int offset, [Flow(FlowDirection.In)] uint size, [Count(Parameter = "size"), Flow(FlowDirection.Out)] void *data)
 {
     // IntPtrOverloader
     GetBufferSubData(target, new IntPtr(offset), new UIntPtr(size), data);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// To be added.
 /// </summary>
 /// <param name="target">
 /// To be added.
 /// </param>
 /// <param name="size">
 /// To be added.
 /// </param>
 /// <param name="data">
 /// To be added.
 /// This parameter's element count is taken from size.
 /// </param>
 /// <param name="usage">
 /// To be added.
 /// </param>
 public unsafe void BufferData([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] uint size, [Count(Parameter = "size"), Flow(FlowDirection.In)] void *data, [Flow(FlowDirection.In)] BufferUsageARB usage)
 {
     // IntPtrOverloader
     BufferData(target, new UIntPtr(size), data, usage);
 }
Ejemplo n.º 5
0
 public abstract unsafe void *MapBuffer([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] BufferAccessARB access);
Ejemplo n.º 6
0
		public static void FlushMappedBufferRange(BufferTargetARB target, IntPtr offset, UInt32 length)
		{
			Debug.Assert(Delegates.pglFlushMappedBufferRange != null, "pglFlushMappedBufferRange not implemented");
			Delegates.pglFlushMappedBufferRange((Int32)target, offset, length);
			LogFunction("glFlushMappedBufferRange({0}, 0x{1}, {2})", target, offset.ToString("X8"), length);
			DebugCheckErrors(null);
		}
Ejemplo n.º 7
0
		public static void GetBufferParameter(BufferTargetARB target, Int32 value, out Int32 data)
		{
			unsafe {
				fixed (Int32* p_params = &data)
				{
					Debug.Assert(Delegates.pglGetBufferParameteriv != null, "pglGetBufferParameteriv not implemented");
					Delegates.pglGetBufferParameteriv((Int32)target, value, p_params);
					LogFunction("glGetBufferParameteriv({0}, {1}, {2})", target, LogEnumName(value), data);
				}
			}
			DebugCheckErrors(null);
		}
Ejemplo n.º 8
0
		public static void GetBufferSubData(BufferTargetARB target, IntPtr offset, UInt32 size, IntPtr data)
		{
			Debug.Assert(Delegates.pglGetBufferSubData != null, "pglGetBufferSubData not implemented");
			Delegates.pglGetBufferSubData((Int32)target, offset, size, data);
			LogFunction("glGetBufferSubData({0}, 0x{1}, {2}, 0x{3})", target, offset.ToString("X8"), size, data.ToString("X8"));
			DebugCheckErrors(null);
		}
Ejemplo n.º 9
0
 /// <summary>
 /// To be added.
 /// </summary>
 /// <param name="target">
 /// To be added.
 /// </param>
 /// <param name="offset">
 /// To be added.
 /// </param>
 /// <param name="length">
 /// To be added.
 /// </param>
 public unsafe void FlushMappedBufferRange([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] int offset, [Flow(FlowDirection.In)] uint length)
 {
     // IntPtrOverloader
     FlushMappedBufferRange(target, new IntPtr(offset), new UIntPtr(length));
 }
Ejemplo n.º 10
0
 public abstract unsafe void GetBufferParameter([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] NV pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] ulong * @params);
Ejemplo n.º 11
0
 /// <summary>
 /// To be added.
 /// </summary>
 /// <param name="target">
 /// To be added.
 /// </param>
 /// <param name="internalformat">
 /// To be added.
 /// </param>
 /// <param name="offset">
 /// To be added.
 /// </param>
 /// <param name="size">
 /// To be added.
 /// </param>
 /// <param name="format">
 /// To be added.
 /// </param>
 /// <param name="type">
 /// To be added.
 /// </param>
 /// <param name="data">
 /// To be added.
 /// This parameter's element count is computed from format and type.
 /// </param>
 public unsafe void ClearBufferSubData <T0>([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] InternalFormat internalformat, [Flow(FlowDirection.In)] int offset, [Flow(FlowDirection.In)] uint size, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] PixelType type, [Count(Computed = "format, type"), Flow(FlowDirection.In)] ref T0 data) where T0 : unmanaged
 {
     // IntPtrOverloader
     ClearBufferSubData(target, internalformat, new IntPtr(offset), new UIntPtr(size), format, type, ref data);
 }
Ejemplo n.º 12
0
 public abstract void ClearBufferSubData <T0>([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] InternalFormat internalformat, [Flow(FlowDirection.In)] IntPtr offset, [Flow(FlowDirection.In)] UIntPtr size, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] PixelType type, [Count(Computed = "format, type"), Flow(FlowDirection.In)] ref T0 data) where T0 : unmanaged;
Ejemplo n.º 13
0
 public abstract unsafe void ClearBufferSubData([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] InternalFormat internalformat, [Flow(FlowDirection.In)] IntPtr offset, [Flow(FlowDirection.In)] UIntPtr size, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] PixelType type, [Count(Computed = "format, type"), Flow(FlowDirection.In)] void *data);
Ejemplo n.º 14
0
 public unsafe partial void *MapBufferRange([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] nint offset, [Flow(FlowDirection.In)] nuint length, [Flow(FlowDirection.In)] uint access);
Ejemplo n.º 15
0
 public abstract void GetBufferParameter([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] BufferPNameARB pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] out int @params);
Ejemplo n.º 16
0
 /// <summary>
 /// To be added.
 /// </summary>
 /// <param name="target">
 /// To be added.
 /// </param>
 /// <param name="offset">
 /// To be added.
 /// </param>
 /// <param name="length">
 /// To be added.
 /// </param>
 /// <param name="access">
 /// To be added.
 /// </param>
 /// <returns>See summary.</returns>
 public unsafe void *MapBufferRange([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] int offset, [Flow(FlowDirection.In)] uint length, [Flow(FlowDirection.In)] uint access)
 {
     // IntPtrOverloader
     return(MapBufferRange(target, new IntPtr(offset), new UIntPtr(length), access));
 }
Ejemplo n.º 17
0
		public static void BufferData(BufferTargetARB target, UInt32 size, IntPtr data, BufferUsageARB usage)
		{
			Debug.Assert(Delegates.pglBufferData != null, "pglBufferData not implemented");
			Delegates.pglBufferData((Int32)target, size, data, (Int32)usage);
			LogFunction("glBufferData({0}, {1}, 0x{2}, {3})", target, size, data.ToString("X8"), usage);
		}
Ejemplo n.º 18
0
 public abstract void FlushMappedBufferRange([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] IntPtr offset, [Flow(FlowDirection.In)] UIntPtr length);
Ejemplo n.º 19
0
		public static IntPtr MapBuffer(BufferTargetARB target, BufferAccessARB access)
		{
			IntPtr retValue;

			Debug.Assert(Delegates.pglMapBuffer != null, "pglMapBuffer not implemented");
			retValue = Delegates.pglMapBuffer((Int32)target, (Int32)access);
			LogFunction("glMapBuffer({0}, {1}) = {2}", target, access, retValue.ToString("X8"));
			DebugCheckErrors(retValue);

			return (retValue);
		}
Ejemplo n.º 20
0
 public abstract unsafe void *MapBufferRange([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] IntPtr offset, [Flow(FlowDirection.In)] UIntPtr length, [Flow(FlowDirection.In)] uint access);
Ejemplo n.º 21
0
		public static void GetBufferPointer(BufferTargetARB target, Int32 pname, Object @params)
		{
			GCHandle pin_params = GCHandle.Alloc(@params, GCHandleType.Pinned);
			try {
				GetBufferPointer(target, pname, pin_params.AddrOfPinnedObject());
			} finally {
				pin_params.Free();
			}
		}
Ejemplo n.º 22
0
 public partial void BufferStorageMem([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] nuint size, [Flow(FlowDirection.In)] uint memory, [Flow(FlowDirection.In)] ulong offset);
Ejemplo n.º 23
0
 public abstract unsafe void GetBufferPointer <T0>([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] BufferPointerNameARB pname, [Count(Count = 1), Flow(FlowDirection.Out)] out T0 * @params) where T0 : unmanaged;
Ejemplo n.º 24
0
 public partial void BindBuffer([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] uint buffer);
Ejemplo n.º 25
0
 public abstract bool UnmapBuffer([Flow(FlowDirection.In)] BufferTargetARB target);
Ejemplo n.º 26
0
 public unsafe partial void GetBufferPointer([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] BufferPointerNameARB pname, [Count(Count = 1), Flow(FlowDirection.Out)] out void * @params);
Ejemplo n.º 27
0
 /// <summary>
 /// To be added.
 /// </summary>
 /// <param name="target">
 /// To be added.
 /// </param>
 /// <param name="size">
 /// To be added.
 /// </param>
 /// <param name="data">
 /// To be added.
 /// This parameter's element count is taken from size.
 /// </param>
 /// <param name="usage">
 /// To be added.
 /// </param>
 public unsafe void BufferData <T0>([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] uint size, [Count(Parameter = "size"), Flow(FlowDirection.In)] Span <T0> data, [Flow(FlowDirection.In)] BufferUsageARB usage) where T0 : unmanaged
 {
     // IntPtrOverloader
     BufferData(target, new UIntPtr(size), data, usage);
 }
Ejemplo n.º 28
0
 public unsafe partial void *MapBuffer([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] BufferAccessARB access);
Ejemplo n.º 29
0
 /// <summary>
 /// To be added.
 /// </summary>
 /// <param name="target">
 /// To be added.
 /// </param>
 /// <param name="offset">
 /// To be added.
 /// </param>
 /// <param name="size">
 /// To be added.
 /// </param>
 /// <param name="data">
 /// To be added.
 /// This parameter's element count is taken from size.
 /// </param>
 public unsafe void GetBufferSubData <T0>([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] int offset, [Flow(FlowDirection.In)] uint size, [Count(Parameter = "size"), Flow(FlowDirection.Out)] Span <T0> data) where T0 : unmanaged
 {
     // IntPtrOverloader
     GetBufferSubData(target, new IntPtr(offset), new UIntPtr(size), data);
 }
Ejemplo n.º 30
0
 public partial void GetBooleanIndexed([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] uint index, [Count(Computed = "target"), Flow(FlowDirection.Out)] out Boolean data);
Ejemplo n.º 31
0
 public abstract void BufferSubData <T0>([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] IntPtr offset, [Flow(FlowDirection.In)] UIntPtr size, [Count(Parameter = "size"), Flow(FlowDirection.In)] Span <T0> data) where T0 : unmanaged;
Ejemplo n.º 32
0
 /// <summary>
 /// Construct an ArrayBufferObjectBase.
 /// </summary>
 /// <param name="bufferTarget">
 /// A <see cref="BufferTargetARB"/> that specify the buffer target.
 /// </param>
 /// <param name="hint">
 /// An <see cref="BufferObjectHint"/> that specify the data buffer usage hints.
 /// </param>
 protected ArrayBufferObjectBase(BufferTargetARB bufferTarget, BufferObjectHint hint) :
     base(bufferTarget, hint)
 {
 }
Ejemplo n.º 33
0
		public static void GetBufferParameter(BufferTargetARB target, Int32 pname, out Int32 @params)
		{
			unsafe {
				fixed (Int32* p_params = &@params)
				{
					Debug.Assert(Delegates.pglGetBufferParameteriv != null, "pglGetBufferParameteriv not implemented");
					Delegates.pglGetBufferParameteriv((Int32)target, pname, p_params);
					CallLog("glGetBufferParameteriv({0}, {1}, {2})", target, pname, @params);
				}
			}
			DebugCheckErrors();
		}
 public static unsafe void ClearBufferSubData <T0>(this ArbClearBufferObject thisApi, [Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] InternalFormat internalformat, [Flow(FlowDirection.In)] nint offset, [Flow(FlowDirection.In)] nuint size, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] PixelType type, [Count(Computed = "format, type"), Flow(FlowDirection.In)] ReadOnlySpan <T0> data) where T0 : unmanaged
 {
     // SpanOverloader
     thisApi.ClearBufferSubData(target, internalformat, offset, size, format, type, in data.GetPinnableReference());
 }
Ejemplo n.º 35
0
		public static void BufferData(BufferTargetARB target, UInt32 size, Object data, BufferUsageARB usage)
		{
			GCHandle pin_data = GCHandle.Alloc(data, GCHandleType.Pinned);
			try {
				BufferData(target, size, pin_data.AddrOfPinnedObject(), usage);
			} finally {
				pin_data.Free();
			}
		}
Ejemplo n.º 36
0
 public partial void GetBufferParameter([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] NV pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] out ulong @params);
Ejemplo n.º 37
0
		public static void GetBufferSubData(BufferTargetARB target, IntPtr offset, UInt32 size, Object data)
		{
			GCHandle pin_data = GCHandle.Alloc(data, GCHandleType.Pinned);
			try {
				GetBufferSubData(target, offset, size, pin_data.AddrOfPinnedObject());
			} finally {
				pin_data.Free();
			}
		}
Ejemplo n.º 38
0
 public abstract void BindBuffer([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] uint buffer);
Ejemplo n.º 39
0
		public static bool UnmapBuffer(BufferTargetARB target)
		{
			bool retValue;

			Debug.Assert(Delegates.pglUnmapBuffer != null, "pglUnmapBuffer not implemented");
			retValue = Delegates.pglUnmapBuffer((Int32)target);
			LogFunction("glUnmapBuffer({0}) = {1}", target, retValue);
			DebugCheckErrors(retValue);

			return (retValue);
		}
Ejemplo n.º 40
0
 public abstract unsafe void BufferData([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] UIntPtr size, [Count(Parameter = "size"), Flow(FlowDirection.In)] void *data, [Flow(FlowDirection.In)] BufferUsageARB usage);
Ejemplo n.º 41
0
		public static void GetBufferPointer(BufferTargetARB target, Int32 pname, out IntPtr @params)
		{
			unsafe {
				fixed (IntPtr* p_params = &@params)
				{
					Debug.Assert(Delegates.pglGetBufferPointerv != null, "pglGetBufferPointerv not implemented");
					Delegates.pglGetBufferPointerv((Int32)target, pname, p_params);
					LogFunction("glGetBufferPointerv({0}, {1}, 0x{2})", target, LogEnumName(pname), @params.ToString("X8"));
				}
			}
			DebugCheckErrors(null);
		}
Ejemplo n.º 42
0
 public abstract unsafe void GetBufferPointer([Flow(FlowDirection.In)] BufferTargetARB target, [Flow(FlowDirection.In)] BufferPointerNameARB pname, [Count(Count = 1), Flow(FlowDirection.Out)] void ** @params);
Ejemplo n.º 43
0
		public static void BindBuffer(BufferTargetARB target, UInt32 buffer)
		{
			Debug.Assert(Delegates.pglBindBuffer != null, "pglBindBuffer not implemented");
			Delegates.pglBindBuffer((Int32)target, buffer);
			LogFunction("glBindBuffer({0}, {1})", target, buffer);
			DebugCheckErrors(null);
		}
Ejemplo n.º 44
0
		public static IntPtr MapBufferRange(BufferTargetARB target, IntPtr offset, UInt32 length, UInt32 access)
		{
			IntPtr retValue;

			Debug.Assert(Delegates.pglMapBufferRange != null, "pglMapBufferRange not implemented");
			retValue = Delegates.pglMapBufferRange((Int32)target, offset, length, access);
			LogFunction("glMapBufferRange({0}, 0x{1}, {2}, {3}) = {4}", target, offset.ToString("X8"), length, access, retValue.ToString("X8"));
			DebugCheckErrors(retValue);

			return (retValue);
		}