コード例 #1
0
ファイル: udSDK.cs プロジェクト: rbvaradi/udSDKSamples
        public void Create(udContext context)
        {
            udError error = udConvert_CreateContext(context.pContext, ref pConvertContext);

            if (error != udError.udE_Success)
            {
                throw new Exception("udConvertContext.Create failed.");
            }
        }
コード例 #2
0
ファイル: udSDK.cs プロジェクト: rbvaradi/udSDKSamples
        public void Create(udContext context, udRenderContext renderer, UInt32 width, UInt32 height)
        {
            udError error = udRenderTarget_Create(context.pContext, ref pRenderTarget, renderer.pRenderer, width, height);

            if (error != udError.udE_Success)
            {
                throw new Exception("udRenderTarget.Create failed.");
            }

            this.context = context;
        }
コード例 #3
0
ファイル: udSDK.cs プロジェクト: rbvaradi/udSDKSamples
        public void Load(udContext context, string modelLocation, ref udPointCloudHeader header)
        {
            udError error = udPointCloud_Load(context.pContext, ref pModel, modelLocation, ref header);

            if (error != udError.udE_Success)
            {
                throw new Exception("udPointCloud.Load failed.");
            }

            this.context = context;
        }
コード例 #4
0
ファイル: udSDK.cs プロジェクト: rbvaradi/udSDKSamples
        public void Create(udContext context)
        {
            udError error = udRenderContext_Create(context.pContext, ref pRenderer);

            if (error != udError.udE_Success)
            {
                throw new Exception("udRenderContext.Create failed.");
            }

            this.context = context;
        }