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

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkGLSLShaderDeviceAdapter2)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
示例#2
0
        public virtual vtkGLSLShaderDeviceAdapter2 GetShaderDeviceAdapter2()
        {
            vtkGLSLShaderDeviceAdapter2 vtkGLSLShaderDeviceAdapter = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkOpenGLProperty.vtkOpenGLProperty_GetShaderDeviceAdapter2_03(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkGLSLShaderDeviceAdapter = (vtkGLSLShaderDeviceAdapter2)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkGLSLShaderDeviceAdapter.Register(null);
                }
            }
            return(vtkGLSLShaderDeviceAdapter);
        }