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