X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2Fvv.cxx;h=2502866a80b7ee953d4566c9af076f0028668b2c;hb=c99295881254fc9245d4ee2a4cf940cf87ca2d7f;hp=a5a0215fb1d3cc31aa8b0b66137ce67d6d22b0e6;hpb=c234e07e4ef90bb8b08c75ca4f1b3a76055e7859;p=clitk.git diff --git a/vv/vv.cxx b/vv/vv.cxx index a5a0215..2502866 100644 --- a/vv/vv.cxx +++ b/vv/vv.cxx @@ -28,6 +28,15 @@ #include #include +#if VTK_MAJOR_VERSION > 5 +#include + VTK_MODULE_INIT(vtkInteractionStyle); + VTK_MODULE_INIT(vtkRenderingOpenGL); + VTK_MODULE_INIT(vtkRenderingFreeType); +#define vtkRenderingContext2D_AUTOINIT 1(vtkRenderingContextOpenGL) +#endif + + #include "clitkIO.h" #include "vvMainWindow.h" #include "vvReadState.h" @@ -44,6 +53,7 @@ #include #include #include +#pragma comment(lib, "ws2_32.lib") typedef enum {O_BASE,O_OVERLAY,O_FUSION,O_VF,O_CONTOUR,O_LANDMARKS} OpenModeType; typedef enum {P_NORMAL,P_SEQUENCE,P_WINDOW,P_LEVEL} ParseModeType;