Changeset 20398
- Timestamp:
- 06/30/07 07:11:16 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/vrjuggler/vrj/Draw/Direct3D/D3dWindow.cpp
r20345 r20398 41 41 #include <vrj/Draw/Direct3D/D3dSimInterface.h> 42 42 43 // The following is used below in D3dWindow::registerWindowClass(). The key 44 // parts are VJ_LIB_RT_OPT and VJ_VERSION_STR. 45 # if defined(VJ_DEBUG) 46 # if defined(_DEBUG) 47 # define VJ_LIB_RT_OPT "_d" 48 # else 49 # define VJ_LIB_RT_OPT "_g" 50 # endif 51 # else 52 # define VJ_LIB_RT_OPT "" 53 # endif 54 55 # define VJ_STRINGIZE(X) VJ_DO_STRINGIZE(X) 56 # define VJ_DO_STRINGIZE(X) #X 57 # define VJ_VERSION_STR VJ_STRINGIZE(__VJ_MAJOR__) "_" \ 58 VJ_STRINGIZE(__VJ_MINOR__) "_" \ 59 VJ_STRINGIZE(__VJ_PATCH__) 60 43 61 // This variable determines which matrix stack we put the viewing transformation 44 62 // If it is on the proj matrix, then lighting and env maps work but fog breaks. … … 478 496 mWinClass.lpszClassName = D3D_WINDOW_WIN32_CLASSNAME; 479 497 480 #if defined(VJ_DEBUG)481 # if defined(_DEBUG)482 # define LIBNAME "vrj_d3d_d.dll"483 # else484 # define LIBNAME "vrj_d3d_g.dll"485 # endif486 #else487 # define LIBNAME "vrj_d3d.dll"488 #endif489 490 498 if (mWinClass.hIcon == NULL) 491 499 { 492 HINSTANCE hDLLInstance = LoadLibrary( LIBNAME ); 500 HINSTANCE hDLLInstance = 501 LoadLibrary("vrj_d3d" VJ_LIB_RT_OPT "-" VJ_VERSION_STR ".dll"); 493 502 if (hDLLInstance != NULL) 494 503 { juggler/trunk/modules/vrjuggler/vrj/Draw/OGL/GlWindowWin32.cpp
r20345 r20398 41 41 #include <vrj/Draw/OGL/GlWindow.h> 42 42 #include <vrj/Draw/OGL/GlWindowWin32.h> 43 44 // The following is used below in GlWindowWin32::registerWindowClass(). The 45 // key parts are VJ_LIB_RT_OPT and VJ_VERSION_STR. 46 # if defined(VJ_DEBUG) 47 # if defined(_DEBUG) 48 # define VJ_LIB_RT_OPT "_d" 49 # else 50 # define VJ_LIB_RT_OPT "_g" 51 # endif 52 # else 53 # define VJ_LIB_RT_OPT "" 54 # endif 55 56 # define VJ_STRINGIZE(X) VJ_DO_STRINGIZE(X) 57 # define VJ_DO_STRINGIZE(X) #X 58 # define VJ_VERSION_STR VJ_STRINGIZE(__VJ_MAJOR__) "_" \ 59 VJ_STRINGIZE(__VJ_MINOR__) "_" \ 60 VJ_STRINGIZE(__VJ_PATCH__) 61 43 62 44 63 static const char* GL_WINDOW_WIN32_CLASSNAME("vrj::GlWindowWin32"); … … 722 741 mWinClass.lpszClassName = GL_WINDOW_WIN32_CLASSNAME; 723 742 724 #if defined(VJ_DEBUG)725 # if defined(_DEBUG)726 # define LIBNAME "vrj_ogl_d.dll"727 # else728 # define LIBNAME "vrj_ogl_g.dll"729 # endif730 #else731 # define LIBNAME "vrj_ogl.dll"732 #endif733 734 743 if (mWinClass.hIcon == NULL) 735 744 { 736 HINSTANCE hDLLInstance = LoadLibrary( LIBNAME ); 745 HINSTANCE hDLLInstance = 746 LoadLibrary("vrj_ogl" VJ_LIB_RT_OPT "-" VJ_VERSION_STR ".dll"); 737 747 if (hDLLInstance != NULL) 738 748 {
