Beispiel #1
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);
        }