public new vtkShaderProgram NewInstance()
        {
            vtkShaderProgram result      = null;
            uint             mteStatus   = 0u;
            uint             mteIndex    = 4294967295u;
            uint             rawRefCount = 0u;
            IntPtr           intPtr      = vtkShaderProgram.vtkShaderProgram_NewInstance_09(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkShaderProgram)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
Beispiel #2
0
        public virtual vtkShaderProgram GetShaderProgram()
        {
            vtkShaderProgram vtkShaderProgram = null;
            uint             mteStatus        = 0u;
            uint             mteIndex         = 4294967295u;
            uint             rawRefCount      = 0u;
            IntPtr           intPtr           = vtkShaderDeviceAdapter.vtkShaderDeviceAdapter_GetShaderProgram_01(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkShaderProgram = (vtkShaderProgram)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkShaderProgram.Register(null);
                }
            }
            return(vtkShaderProgram);
        }
        public static vtkShaderProgram CreateShaderProgram(int type)
        {
            vtkShaderProgram vtkShaderProgram = null;
            uint             mteStatus        = 0u;
            uint             mteIndex         = 4294967295u;
            uint             rawRefCount      = 0u;
            IntPtr           intPtr           = vtkShaderProgram.vtkShaderProgram_CreateShaderProgram_03(type, ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkShaderProgram = (vtkShaderProgram)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkShaderProgram.Register(null);
                }
            }
            return(vtkShaderProgram);
        }
        public new static vtkShaderProgram SafeDownCast(vtkObjectBase o)
        {
            vtkShaderProgram vtkShaderProgram = null;
            uint             mteStatus        = 0u;
            uint             mteIndex         = 4294967295u;
            uint             rawRefCount      = 0u;
            IntPtr           intPtr           = vtkShaderProgram.vtkShaderProgram_SafeDownCast_17((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkShaderProgram = (vtkShaderProgram)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkShaderProgram.Register(null);
                }
            }
            return(vtkShaderProgram);
        }
Beispiel #5
0
 public void SetShaderProgram(vtkShaderProgram pgm)
 {
     vtkShaderDeviceAdapter.vtkShaderDeviceAdapter_SetShaderProgram_08(base.GetCppThis(), (pgm == null) ? default(HandleRef) : pgm.GetCppThis());
 }