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 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 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); }