public void Create(vdkContext context) { vdkError error = vdkConvert_CreateContext(context.pContext, ref pConvertContext); if (error != Vault.vdkError.vE_Success) { throw new Exception("vdkConvertContext.Create failed."); } }
public void Load(vdkContext context, string modelLocation, ref vdkPointCloudHeader header) { vdkError error = vdkPointCloud_Load(context.pContext, ref pModel, modelLocation, ref header); if (error != Vault.vdkError.vE_Success) { throw new Exception("vdkPointCloud.Load failed."); } this.context = context; }
public void Create(vdkContext context, vdkRenderContext renderer, UInt32 width, UInt32 height) { vdkError error = vdkRenderView_Create(context.pContext, ref pRenderView, renderer.pRenderer, width, height); if (error != Vault.vdkError.vE_Success) { throw new Exception("vdkRenderView.Create failed."); } this.context = context; }
public void Create(vdkContext context) { vdkError error = vdkRenderContext_Create(context.pContext, ref pRenderer); if (error != Vault.vdkError.vE_Success) { throw new Exception("vdkRenderContext.Create failed."); } this.context = context; }
public void Create(vdkContext context, vdkRenderContext renderer, UInt32 width, UInt32 height) { if (context.pContext == IntPtr.Zero) { throw new Exception("context not instantiated"); } if (renderer.pRenderer == IntPtr.Zero) { throw new Exception("renderer not instantiated"); } vdkError error = vdkRenderView_Create(context.pContext, ref pRenderView, renderer.pRenderer, width, height); if (error != Vault.vdkError.vE_Success) { throw new Exception("vdkRenderView.Create failed: " + error.ToString()); } this.context = context; }
public void Create(vdkContext context) { //ensure we destroy the existing context if we are creating a new one: if (pRenderer != IntPtr.Zero) { Destroy(); } if (context.pContext == IntPtr.Zero) { throw new Exception("context not instantiatiated"); } vdkError error = vdkRenderContext_Create(context.pContext, ref pRenderer); if (error != Vault.vdkError.vE_Success) { throw new Exception("vdkRenderContext.Create failed: " + error.ToString()); } this.context = context; }
public LoginBox(ref Vault.vdkContext vaultCtx) { InitializeComponent(); this.vaultCtx = vaultCtx; }