Example #1
0
        internal override void Draw(Display.DisplayPipeline pipeline, System.Drawing.Color color, int density)
        {
            IntPtr pDisplayPipeline = pipeline.NonConstPointer();
            IntPtr ptr  = ConstPointer();
            int    argb = color.ToArgb();

            UnsafeNativeMethods.CRhinoDisplayPipeline_DrawNurbsSurface(pDisplayPipeline, ptr, argb, density);
        }
Example #2
0
 internal Light(Display.DisplayPipeline parentPipeline, int index) : base(IntPtr.Zero, parentPipeline, index)
 {
 }
Example #3
0
 /// <summary>
 /// Get CRhinoDisplayPipeline* for a DisplayPipeline instance
 /// </summary>
 /// <param name="pipeline"></param>
 /// <returns></returns>
 /// <since>6.0</since>
 public static IntPtr NativeNonConstPointer(Display.DisplayPipeline pipeline)
 {
     return(pipeline.NonConstPointer());
 }