mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 09:30:48 +08:00
0024699: Visualization - prototype interoperation of TKOpenGl viewer with Direct3D viewer
Add new C# sample which allow to render the OCCT scene to a Direct3D context in a WPF application. DirectX SDK is required in order to build this sample.
This commit is contained in:
27
samples/CSharp/run_wpf_D3D.bat
Normal file
27
samples/CSharp/run_wpf_D3D.bat
Normal file
@@ -0,0 +1,27 @@
|
||||
@echo off
|
||||
|
||||
if "%1" == "-h" (
|
||||
echo Launch WPF sample as follows:
|
||||
echo %~n0 ^[vc9^] ^[win32^|win64^] ^[Debug^|Release^]
|
||||
echo By default configuration set in ..\..\custom.bat is used
|
||||
echo Run %~n0 -h to get this help
|
||||
exit /B
|
||||
)
|
||||
|
||||
call "%~dp0..\..\env.bat" %1 %2 %3
|
||||
|
||||
set "EXEC=%~dp0\win%ARCH%\bin%CASDEB%\IE_WPF_D3D.exe"
|
||||
|
||||
if not exist "%EXEC%" goto err_exe
|
||||
|
||||
"%EXEC%"
|
||||
|
||||
goto eof
|
||||
|
||||
:err_exe
|
||||
echo Executable %EXEC% not found.
|
||||
echo Check that OCCT and sample are built with the selected configuration:
|
||||
echo compiler=%VCVER% platform=win%ARCH% %3
|
||||
exit /B
|
||||
|
||||
:eof
|
||||
Reference in New Issue
Block a user