From 3bfa17f584d9b6ad0bcb468c85b815c5046d7250 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Wed, 2 Nov 2016 23:36:06 +0200 Subject: [PATCH] initial vc project --- .gitignore | 4 + laserbrain_demo.sln | 22 ++++++ laserbrain_demo.vcxproj | 141 +++++++++++++++++++++++++++++++++ laserbrain_demo.vcxproj.filters | 165 +++++++++++++++++++++++++++++++++++++++ src/machine/machine.cc | 1 + src/texture.cc | 2 +- 6 files changed, 334 insertions(+), 1 deletion(-) create mode 100644 laserbrain_demo.sln create mode 100644 laserbrain_demo.vcxproj create mode 100644 laserbrain_demo.vcxproj.filters diff --git a/.gitignore b/.gitignore index 6871807..e377c0e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,7 @@ demo data/ .clang_complete +*.suo +*sdf +Debug/ +Release/ diff --git a/laserbrain_demo.sln b/laserbrain_demo.sln new file mode 100644 index 0000000..d7ed79f --- /dev/null +++ b/laserbrain_demo.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.40629.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "laserbrain_demo", "laserbrain_demo.vcxproj", "{71A6DAF0-CBF6-4135-BE23-B3999E432EF6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {71A6DAF0-CBF6-4135-BE23-B3999E432EF6}.Debug|Win32.ActiveCfg = Debug|Win32 + {71A6DAF0-CBF6-4135-BE23-B3999E432EF6}.Debug|Win32.Build.0 = Debug|Win32 + {71A6DAF0-CBF6-4135-BE23-B3999E432EF6}.Release|Win32.ActiveCfg = Release|Win32 + {71A6DAF0-CBF6-4135-BE23-B3999E432EF6}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/laserbrain_demo.vcxproj b/laserbrain_demo.vcxproj new file mode 100644 index 0000000..65d6e82 --- /dev/null +++ b/laserbrain_demo.vcxproj @@ -0,0 +1,141 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {71A6DAF0-CBF6-4135-BE23-B3999E432EF6} + Win32Proj + laserbrain_demo + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + 4244;4305;4996 + $(ProjectDir)\src;$(ProjectDir)\src\machine;%(AdditionalIncludeDirectories) + + + Console + true + opengl32.lib;freeglut.lib;glew32.lib;libgmath.lib;libvmath.lib;libimago2.lib;zlib.lib;libpng.lib;libjpeg.lib;libresman.lib;%(AdditionalDependencies) + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + 4244;4305;4996 + $(ProjectDir)\src;$(ProjectDir)\src\machine;%(AdditionalIncludeDirectories) + + + Console + true + true + true + opengl32.lib;freeglut.lib;glew32.lib;libgmath.lib;libvmath.lib;libimago2.lib;zlib.lib;libpng.lib;libjpeg.lib;libresman.lib;%(AdditionalDependencies) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/laserbrain_demo.vcxproj.filters b/laserbrain_demo.vcxproj.filters new file mode 100644 index 0000000..43d5a0d --- /dev/null +++ b/laserbrain_demo.vcxproj.filters @@ -0,0 +1,165 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx;h + + + {b07e85b5-1bef-4321-9140-79e9c1b6de3d} + + + {8e6a8961-784c-4356-9074-885fb1660b86} + + + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src\machine + + + src\machine + + + src\machine + + + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src\machine + + + src\machine + + + src\machine + + + + + src + + + sdr + + + sdr + + + sdr + + + sdr + + + sdr + + + sdr + + + \ No newline at end of file diff --git a/src/machine/machine.cc b/src/machine/machine.cc index 441826e..191fe2f 100644 --- a/src/machine/machine.cc +++ b/src/machine/machine.cc @@ -3,6 +3,7 @@ #include #include #include +#include #include "opengl.h" #include "machine.h" diff --git a/src/texture.cc b/src/texture.cc index 5bf291d..45f9094 100644 --- a/src/texture.cc +++ b/src/texture.cc @@ -459,7 +459,7 @@ TextureSet::TextureSet() Texture *TextureSet::get_texture(const char *name, TextureType type) const { - typename std::map::const_iterator iter = data.find(name); + std::map::const_iterator iter = data.find(name); if(iter != data.end()) { return iter->second; } -- 1.7.10.4