コード例 #1
2
		public static void GetHistogramEXT(HistogramTargetEXT target, bool reset, PixelFormat format, PixelType type, IntPtr values)
		{
			Debug.Assert(Delegates.pglGetHistogramEXT != null, "pglGetHistogramEXT not implemented");
			Delegates.pglGetHistogramEXT((Int32)target, reset, (Int32)format, (Int32)type, values);
			CallLog("glGetHistogramEXT({0}, {1}, {2}, {3}, 0x{4})", target, reset, format, type, values.ToString("X8"));
			DebugCheckErrors();
		}
コード例 #2
0
 public static void GetnHistogramARB(HistogramTargetEXT target, bool reset, PixelFormat format, PixelType type, Int32 bufSize, IntPtr values)
 {
     Debug.Assert(Delegates.pglGetnHistogramARB != null, "pglGetnHistogramARB not implemented");
     Delegates.pglGetnHistogramARB((Int32)target, reset, (Int32)format, (Int32)type, bufSize, values);
     LogCommand("glGetnHistogramARB", null, target, reset, format, type, bufSize, values);
     DebugCheckErrors(null);
 }
コード例 #3
0
ファイル: Gl.Vb.cs プロジェクト: ihildebrandt/OpenGL.Net
 public static void Histogram(HistogramTargetEXT target, Int32 width, InternalFormat internalformat, bool sink)
 {
     Debug.Assert(Delegates.pglHistogram != null, "pglHistogram not implemented");
     Delegates.pglHistogram((Int32)target, width, (Int32)internalformat, sink);
     LogCommand("glHistogram", null, target, width, internalformat, sink);
     DebugCheckErrors(null);
 }
コード例 #4
0
 public static void GetHistogramEXT(HistogramTargetEXT target, bool reset, PixelFormat format, PixelType type, IntPtr values)
 {
     Debug.Assert(Delegates.pglGetHistogramEXT != null, "pglGetHistogramEXT not implemented");
     Delegates.pglGetHistogramEXT((Int32)target, reset, (Int32)format, (Int32)type, values);
     LogFunction("glGetHistogramEXT({0}, {1}, {2}, {3}, 0x{4})", target, reset, format, type, values.ToString("X8"));
     DebugCheckErrors(null);
 }
コード例 #5
0
		public static void GetHistogramEXT(HistogramTargetEXT target, bool reset, PixelFormat format, PixelType type, Object values)
		{
			GCHandle pin_values = GCHandle.Alloc(values, GCHandleType.Pinned);
			try {
				GetHistogramEXT(target, reset, format, type, pin_values.AddrOfPinnedObject());
			} finally {
				pin_values.Free();
			}
		}
コード例 #6
0
        public static void GetnHistogramARB(HistogramTargetEXT target, bool reset, PixelFormat format, PixelType type, Int32 bufSize, Object values)
        {
            GCHandle pin_values = GCHandle.Alloc(values, GCHandleType.Pinned);

            try {
                GetnHistogramARB(target, reset, format, type, bufSize, pin_values.AddrOfPinnedObject());
            } finally {
                pin_values.Free();
            }
        }
コード例 #7
0
 public static void GetHistogramParameterEXT(HistogramTargetEXT target, GetHistogramParameterPNameEXT pname, [Out] Int32[] @params)
 {
     unsafe
     {
         fixed(Int32 *p_params = @params)
         {
             Debug.Assert(Delegates.pglGetHistogramParameterivEXT != null, "pglGetHistogramParameterivEXT not implemented");
             Delegates.pglGetHistogramParameterivEXT((Int32)target, (Int32)pname, p_params);
             LogFunction("glGetHistogramParameterivEXT({0}, {1}, {2})", target, pname, LogValue(@params));
         }
     }
     DebugCheckErrors(null);
 }
コード例 #8
0
 public static void GetHistogramParameterEXT(HistogramTargetEXT target, GetHistogramParameterPNameEXT pname, [Out] float[] @params)
 {
     unsafe
     {
         fixed(float *p_params = @params)
         {
             Debug.Assert(Delegates.pglGetHistogramParameterfvEXT != null, "pglGetHistogramParameterfvEXT not implemented");
             Delegates.pglGetHistogramParameterfvEXT((Int32)target, (Int32)pname, p_params);
             LogCommand("glGetHistogramParameterfvEXT", null, target, pname, @params);
         }
     }
     DebugCheckErrors(null);
 }
コード例 #9
0
 public partial void GetHistogram <T0>([Flow(FlowDirection.In)] HistogramTargetEXT target, [Flow(FlowDirection.In)] bool reset, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] PixelType type, [Count(Computed = "target, format, type"), Flow(FlowDirection.Out)] out T0 values) where T0 : unmanaged;
コード例 #10
0
 public unsafe partial void GetHistogram([Flow(FlowDirection.In)] HistogramTargetEXT target, [Flow(FlowDirection.In)] bool reset, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] PixelType type, [Count(Computed = "target, format, type"), Flow(FlowDirection.Out)] void *values);
コード例 #11
0
 public partial void ResetHistogram([Flow(FlowDirection.In)] HistogramTargetEXT target);
コード例 #12
0
 public partial void Histogram([Flow(FlowDirection.In)] HistogramTargetEXT target, [Flow(FlowDirection.In)] uint width, [Flow(FlowDirection.In)] InternalFormat internalformat, [Flow(FlowDirection.In)] bool sink);
コード例 #13
0
		public static void GetHistogramParameterEXT(HistogramTargetEXT target, GetHistogramParameterPNameEXT pname, [Out] float[] @params)
		{
			unsafe {
				fixed (float* p_params = @params)
				{
					Debug.Assert(Delegates.pglGetHistogramParameterfvEXT != null, "pglGetHistogramParameterfvEXT not implemented");
					Delegates.pglGetHistogramParameterfvEXT((Int32)target, (Int32)pname, p_params);
					CallLog("glGetHistogramParameterfvEXT({0}, {1}, {2})", target, pname, @params);
				}
			}
			DebugCheckErrors();
		}
コード例 #14
0
 public static unsafe void GetHistogramEXT( HistogramTargetEXT target, bool reset, PixelFormat format, PixelType type, [Out]void* values )
 {
     if (_GetHistogramEXT == null) throw new Exception( "Extension method GetHistogramEXT not found" );
      _GetHistogramEXT( target, reset, format, type, values );
 }
コード例 #15
0
		public static void GetHistogramParameterEXT(HistogramTargetEXT target, GetHistogramParameterPNameEXT pname, [Out] Int32[] @params)
		{
			unsafe {
				fixed (Int32* p_params = @params)
				{
					Debug.Assert(Delegates.pglGetHistogramParameterivEXT != null, "pglGetHistogramParameterivEXT not implemented");
					Delegates.pglGetHistogramParameterivEXT((Int32)target, (Int32)pname, p_params);
					LogFunction("glGetHistogramParameterivEXT({0}, {1}, {2})", target, pname, LogValue(@params));
				}
			}
			DebugCheckErrors(null);
		}
コード例 #16
0
 public static void HistogramEXT( HistogramTargetEXT target, int width, PixelInternalFormat internalformat, bool sink )
 {
     if (_HistogramEXT == null) throw new Exception( "Extension method HistogramEXT not found" );
      _HistogramEXT( target, width, internalformat, sink );
 }
コード例 #17
0
 public partial void Histogram([Flow(FlowDirection.In)] HistogramTargetEXT target, [Flow(FlowDirection.In)] uint width, [Flow(FlowDirection.In)] EXT internalformat, [Flow(FlowDirection.In)] Boolean sink);
コード例 #18
0
 public static unsafe void GetHistogram <T0>(this ExtHistogram thisApi, [Flow(FlowDirection.In)] HistogramTargetEXT target, [Flow(FlowDirection.In)] bool reset, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] PixelType type, [Count(Computed = "target, format, type"), Flow(FlowDirection.Out)] Span <T0> values) where T0 : unmanaged
 {
     // SpanOverloader
     thisApi.GetHistogram(target, reset, format, type, out values.GetPinnableReference());
 }
コード例 #19
0
 public abstract unsafe void GetHistogramParameter([Flow(FlowDirection.In)] HistogramTargetEXT target, [Flow(FlowDirection.In)] GetHistogramParameterPNameEXT pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] float * @params);
コード例 #20
0
 public abstract void ResetHistogram([Flow(FlowDirection.In)] HistogramTargetEXT target);
コード例 #21
0
 public static void GetHistogramParameterivEXT( HistogramTargetEXT target, GetHistogramParameterPNameEXT pname, [Out]int[] @params )
 {
     if (_GetHistogramParameterivEXT == null) throw new Exception( "Extension method GetHistogramParameterivEXT not found" );
      _GetHistogramParameterivEXT( target, pname, @params );
 }
コード例 #22
0
 public unsafe partial void GetHistogramParameter([Flow(FlowDirection.In)] HistogramTargetEXT target, [Flow(FlowDirection.In)] EXT pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] float * @params);
コード例 #23
0
 public abstract void GetnHistogram <T0>([Flow(FlowDirection.In)] HistogramTargetEXT target, [Flow(FlowDirection.In)] bool reset, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] PixelType type, [Flow(FlowDirection.In)] uint bufSize, [Count(Parameter = "bufSize"), Flow(FlowDirection.Out)] Span <T0> values) where T0 : unmanaged;
コード例 #24
0
 public partial void GetHistogramParameter([Flow(FlowDirection.In)] HistogramTargetEXT target, [Flow(FlowDirection.In)] GetHistogramParameterPNameEXT pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] out float @params);
コード例 #25
0
 public abstract unsafe void GetnHistogram([Flow(FlowDirection.In)] HistogramTargetEXT target, [Flow(FlowDirection.In)] bool reset, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] PixelType type, [Flow(FlowDirection.In)] uint bufSize, [Count(Parameter = "bufSize"), Flow(FlowDirection.Out)] void *values);
コード例 #26
0
 public unsafe partial void GetHistogram([Flow(FlowDirection.In)] HistogramTargetEXT target, [Flow(FlowDirection.In)] Boolean reset, [Flow(FlowDirection.In)] EXT format, [Flow(FlowDirection.In)] EXT type, [Count(Computed = "target, format, type"), Flow(FlowDirection.Out)] void *values);
コード例 #27
0
 public static void ResetHistogramEXT( HistogramTargetEXT target )
 {
     if (_ResetHistogramEXT == null) throw new Exception( "Extension method ResetHistogramEXT not found" );
      _ResetHistogramEXT( target );
 }
コード例 #28
0
 public static unsafe void GetHistogramParameter(this ExtHistogram thisApi, [Flow(FlowDirection.In)] HistogramTargetEXT target, [Flow(FlowDirection.In)] GetHistogramParameterPNameEXT pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] Span <float> @params)
 {
     // SpanOverloader
     thisApi.GetHistogramParameter(target, pname, out @params.GetPinnableReference());
 }
コード例 #29
0
 public static unsafe void GetHistogramParameterx(this OesFixedPoint thisApi, [Flow(FlowDirection.In)] HistogramTargetEXT target, [Flow(FlowDirection.In)] OES pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] Span <int> @params)
 {
     // SpanOverloader
     thisApi.GetHistogramParameterx(target, pname, out @params.GetPinnableReference());
 }