diff --git a/.gitignore b/.gitignore index e257658..2ede09c 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,7 @@ *.out *.app +.vs/ +x64/ +Lib/ +*.user diff --git a/Entry/Entry.vcxproj b/Entry/Entry.vcxproj new file mode 100644 index 0000000..c1a9d87 --- /dev/null +++ b/Entry/Entry.vcxproj @@ -0,0 +1,154 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {fad6dd3f-12de-4535-9cbd-a993fda378ce} + Entry + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + $(IncludePath) + $(LibraryPath) + + + false + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + stdc11 + + + Console + true + glfw3_mt.lib;%(AdditionalDependencies) + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + \ No newline at end of file diff --git a/Entry/test.cpp b/Entry/test.cpp new file mode 100644 index 0000000..d1492c7 --- /dev/null +++ b/Entry/test.cpp @@ -0,0 +1,27 @@ +#include "test.h" +#include "../Lib/glfw-3.3.6/include/GLFW/glfw3.h" + +int main() +{ + GLFWwindow* window; + if (glfwInit() == false) + { + return -1; + } + window = glfwCreateWindow(800, 600, "addd", NULL, NULL); + if (!window) + { + glfwTerminate(); + return -1; + } + glfwMakeContextCurrent(window); + while (!glfwWindowShouldClose(window)) + { + //glClear(GL_COLOR_BUFFER_BIT); + + glfwSwapBuffers(window); + + glfwPollEvents(); + } + glfwTerminate(); +} \ No newline at end of file diff --git a/Entry/test.h b/Entry/test.h new file mode 100644 index 0000000..8e020cb --- /dev/null +++ b/Entry/test.h @@ -0,0 +1,10 @@ +#include +#include "../Lib/glfw-3.3.6/include/GLFW/glfw3.h" +#pragma comment(lib,"glfw3.lib") + +class GLTest +{ +public: + +private: +}; diff --git a/LearnOpenGL.sln b/LearnOpenGL.sln new file mode 100644 index 0000000..487c1f1 --- /dev/null +++ b/LearnOpenGL.sln @@ -0,0 +1,37 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.32112.339 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Entry", "Entry\Entry.vcxproj", "{FAD6DD3F-12DE-4535-9CBD-A993FDA378CE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FAD6DD3F-12DE-4535-9CBD-A993FDA378CE}.Debug|Any CPU.ActiveCfg = Debug|x64 + {FAD6DD3F-12DE-4535-9CBD-A993FDA378CE}.Debug|Any CPU.Build.0 = Debug|x64 + {FAD6DD3F-12DE-4535-9CBD-A993FDA378CE}.Debug|x64.ActiveCfg = Debug|x64 + {FAD6DD3F-12DE-4535-9CBD-A993FDA378CE}.Debug|x64.Build.0 = Debug|x64 + {FAD6DD3F-12DE-4535-9CBD-A993FDA378CE}.Debug|x86.ActiveCfg = Debug|Win32 + {FAD6DD3F-12DE-4535-9CBD-A993FDA378CE}.Debug|x86.Build.0 = Debug|Win32 + {FAD6DD3F-12DE-4535-9CBD-A993FDA378CE}.Release|Any CPU.ActiveCfg = Release|x64 + {FAD6DD3F-12DE-4535-9CBD-A993FDA378CE}.Release|Any CPU.Build.0 = Release|x64 + {FAD6DD3F-12DE-4535-9CBD-A993FDA378CE}.Release|x64.ActiveCfg = Release|x64 + {FAD6DD3F-12DE-4535-9CBD-A993FDA378CE}.Release|x64.Build.0 = Release|x64 + {FAD6DD3F-12DE-4535-9CBD-A993FDA378CE}.Release|x86.ActiveCfg = Release|Win32 + {FAD6DD3F-12DE-4535-9CBD-A993FDA378CE}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4DC80FB1-83F8-43C8-9455-E36A56B112FA} + EndGlobalSection +EndGlobal diff --git a/LearnOpenGL/.gitignore b/LearnOpenGL/.gitignore deleted file mode 100644 index e69de29..0000000