# HG changeset patch # User John Tsiombikas # Date 1450403230 -7200 # Node ID 2b7ae76c173fd2eb1fcd0c7cd3eda91d7723d0b8 # Parent 9f75208b81cd11624885d56037272f590be46f63 windows port diff -r 9f75208b81cd -r 2b7ae76c173f curvedraw.sln --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/curvedraw.sln Fri Dec 18 03:47:10 2015 +0200 @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "curvedraw", "curvedraw.vcxproj", "{04CA7CB1-80DB-4E89-8FD3-54715CDA43CE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {04CA7CB1-80DB-4E89-8FD3-54715CDA43CE}.Debug|Win32.ActiveCfg = Debug|Win32 + {04CA7CB1-80DB-4E89-8FD3-54715CDA43CE}.Debug|Win32.Build.0 = Debug|Win32 + {04CA7CB1-80DB-4E89-8FD3-54715CDA43CE}.Release|Win32.ActiveCfg = Release|Win32 + {04CA7CB1-80DB-4E89-8FD3-54715CDA43CE}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff -r 9f75208b81cd -r 2b7ae76c173f curvedraw.vcxproj --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/curvedraw.vcxproj Fri Dec 18 03:47:10 2015 +0200 @@ -0,0 +1,97 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {04CA7CB1-80DB-4E89-8FD3-54715CDA43CE} + Win32Proj + curvedraw + + + + Application + true + v120 + MultiByte + + + Application + false + v120 + false + MultiByte + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;FREEGLUT_LIB_PRAGMAS=0;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + 4244;4996;4305 + + + Console + true + freeglut.lib;libdrawtext.lib;opengl32.lib;glu32.lib;glew32.lib;libvmath-dbg.lib;%(AdditionalDependencies) + + + + + Level3 + + + MaxSpeed + true + true + WIN32;FREEGLUT_LIB_PRAGMAS=0;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + 4244;4996;4305 + + + Console + true + true + true + freeglut.lib;libdrawtext.lib;opengl32.lib;glu32.lib;glew32.lib;libvmath.lib;%(AdditionalDependencies) + + + + + + + + + + + + + + + + + + \ No newline at end of file diff -r 9f75208b81cd -r 2b7ae76c173f curvedraw.vcxproj.filters --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/curvedraw.vcxproj.filters Fri Dec 18 03:47:10 2015 +0200 @@ -0,0 +1,37 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx;h + + + + + src + + + src + + + src + + + src + + + + + src + + + src + + + src + + + src + + + \ No newline at end of file diff -r 9f75208b81cd -r 2b7ae76c173f src/app.cc --- a/src/app.cc Thu Dec 17 07:22:14 2015 +0200 +++ b/src/app.cc Fri Dec 18 03:47:10 2015 +0200 @@ -44,6 +44,8 @@ bool app_init(int argc, char **argv) { + glewInit(); + glEnable(GL_MULTISAMPLE); glEnable(GL_CULL_FACE); diff -r 9f75208b81cd -r 2b7ae76c173f src/curve.cc --- a/src/curve.cc Thu Dec 17 07:22:14 2015 +0200 +++ b/src/curve.cc Fri Dec 18 03:47:10 2015 +0200 @@ -1,4 +1,5 @@ #include +#include #include "curve.h" Curve::Curve(CurveType type) diff -r 9f75208b81cd -r 2b7ae76c173f src/opengl.h --- a/src/opengl.h Thu Dec 17 07:22:14 2015 +0200 +++ b/src/opengl.h Fri Dec 18 03:47:10 2015 +0200 @@ -1,14 +1,6 @@ #ifndef OPENGL_H_ #define OPENGL_H_ -#ifdef WIN32 -#include -#endif - -#ifdef __APPLE__ -#include -#else -#include -#endif +#include #endif // OPENGL_H_ diff -r 9f75208b81cd -r 2b7ae76c173f src/widgets.cc --- a/src/widgets.cc Thu Dec 17 07:22:14 2015 +0200 +++ b/src/widgets.cc Fri Dec 18 03:47:10 2015 +0200 @@ -2,6 +2,11 @@ #include #include #include +#ifdef _MSC_VER +#include +#else +#include +#endif #include #include "opengl.h" #include "widgets.h"