Example #1
0
 public static void GetnHistogramARB(HistogramTarget target, bool reset, PixelFormat format, PixelType type, int bufSize, IntPtr values)
 {
     Debug.Assert(Delegates.pglGetnHistogramARB != null, "pglGetnHistogramARB not implemented");
     Delegates.pglGetnHistogramARB((int)target, reset, (int)format, (int)type, bufSize, values);
     LogCommand("glGetnHistogramARB", null, target, reset, format, type, bufSize, values);
     DebugCheckErrors(null);
 }
Example #2
0
 public static void Histogram(HistogramTarget 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);
 }
Example #3
0
 public static void GetHistogramEXT(HistogramTarget 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);
     LogCommand("glGetHistogramEXT", null, target, reset, format, type, values);
     DebugCheckErrors(null);
 }
Example #4
0
        public static void GetnHistogramARB(HistogramTarget target, bool reset, PixelFormat format, PixelType type, int 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();
            }
        }
Example #5
0
 public static void GetHistogramParameterEXT(HistogramTarget target, GetHistogramParameterPName pname, [Out] int[] @params)
 {
     unsafe
     {
         fixed(int *p_params = @params)
         {
             Debug.Assert(Delegates.pglGetHistogramParameterivEXT != null, "pglGetHistogramParameterivEXT not implemented");
             Delegates.pglGetHistogramParameterivEXT((int)target, (int)pname, p_params);
             LogCommand("glGetHistogramParameterivEXT", null, target, pname, @params);
         }
     }
     DebugCheckErrors(null);
 }