Compare commits

..

2 Commits

Author SHA1 Message Date
Archie Hilton ef03920fa6 Add rotation and translation uniforms 2024-05-10 22:23:35 +01:00
Archie Hilton 267bd2216c Remove build files 2024-05-10 20:54:41 +01:00
18 changed files with 50 additions and 3562 deletions

View File

@ -1 +0,0 @@
{"requests":[{"kind":"cache","version":2},{"kind":"codemodel","version":2},{"kind":"toolchains","version":1},{"kind":"cmakeFiles","version":1}]}

File diff suppressed because it is too large Load Diff

View File

@ -1,269 +0,0 @@
{
"inputs" :
[
{
"path" : "CMakeLists.txt"
},
{
"isGenerated" : true,
"path" : "build/CMakeFiles/3.28.0-msvc1/CMakeSystem.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakeSystemSpecificInitialize.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Platform/Windows-Initialize.cmake"
},
{
"isGenerated" : true,
"path" : "build/CMakeFiles/3.28.0-msvc1/CMakeCXXCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakeSystemSpecificInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakeGenericSystem.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakeInitializeConfigs.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Platform/Windows.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Platform/WindowsPaths.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakeCXXInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakeLanguageInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Compiler/GNU-CXX.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Compiler/GNU.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Platform/Windows-GNU-CXX.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Platform/Windows-GNU.cmake"
},
{
"isGenerated" : true,
"path" : "build/CMakeFiles/3.28.0-msvc1/CMakeRCCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakeRCInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Platform/Windows-windres.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Platform/Windows-GNU-CXX-ABI.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakeCommonLanguageInclude.cmake"
},
{
"path" : "glfw/CMakeLists.txt"
},
{
"isGenerated" : true,
"path" : "build/CMakeFiles/3.28.0-msvc1/CMakeCCompiler.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakeCInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakeLanguageInformation.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Compiler/GNU-C.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Compiler/GNU.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Platform/Windows-GNU-C.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Platform/Windows-GNU.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Platform/Windows-GNU-C-ABI.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakeCommonLanguageInclude.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/GNUInstallDirs.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakeDependentOption.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindThreads.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CheckLibraryExists.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CheckIncludeFile.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CheckCSourceCompiles.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/Internal/CheckSourceCompiles.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindPackageMessage.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakePackageConfigHelpers.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/WriteBasicConfigVersionFile.cmake"
},
{
"path" : "glfw/CMake/glfw3Config.cmake.in"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/BasicConfigVersion-SameMajorVersion.cmake.in"
},
{
"path" : "glfw/CMake/cmake_uninstall.cmake.in"
},
{
"path" : "glfw/src/CMakeLists.txt"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CheckIncludeFile.cmake"
},
{
"path" : "glfw/CMake/glfw3.pc.in"
},
{
"path" : "glfw/docs/CMakeLists.txt"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindDoxygen.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake"
},
{
"isCMake" : true,
"isExternal" : true,
"path" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindPackageMessage.cmake"
},
{
"path" : "src/CMakeLists.txt"
},
{
"path" : "glm/CMakeLists.txt"
}
],
"kind" : "cmakeFiles",
"paths" :
{
"build" : "E:/OneDrive/Documents/Projects/Exponent/build",
"source" : "E:/OneDrive/Documents/Projects/Exponent"
},
"version" :
{
"major" : 1,
"minor" : 0
}
}

View File

@ -1,181 +0,0 @@
{
"configurations" :
[
{
"directories" :
[
{
"build" : ".",
"childIndexes" :
[
1,
4,
5
],
"hasInstallRule" : true,
"jsonFile" : "directory-.-Debug-d0094a50bb2071803777.json",
"minimumCMakeVersion" :
{
"string" : "3.21"
},
"projectIndex" : 0,
"source" : "."
},
{
"build" : "glfw",
"childIndexes" :
[
2,
3
],
"hasInstallRule" : true,
"jsonFile" : "directory-glfw-Debug-a9f3b2047d81ae8f155f.json",
"minimumCMakeVersion" :
{
"string" : "3.4"
},
"parentIndex" : 0,
"projectIndex" : 1,
"source" : "glfw",
"targetIndexes" :
[
2
]
},
{
"build" : "glfw/src",
"hasInstallRule" : true,
"jsonFile" : "directory-glfw.src-Debug-43b5f1f51b8adda39244.json",
"minimumCMakeVersion" :
{
"string" : "3.4"
},
"parentIndex" : 1,
"projectIndex" : 1,
"source" : "glfw/src",
"targetIndexes" :
[
1,
3
]
},
{
"build" : "glfw/docs",
"jsonFile" : "directory-glfw.docs-Debug-21df72f16f419b0b0042.json",
"minimumCMakeVersion" :
{
"string" : "3.4"
},
"parentIndex" : 1,
"projectIndex" : 1,
"source" : "glfw/docs"
},
{
"build" : "src",
"jsonFile" : "directory-src-Debug-c94b7c2814d5a21df52c.json",
"minimumCMakeVersion" :
{
"string" : "3.21"
},
"parentIndex" : 0,
"projectIndex" : 0,
"source" : "src",
"targetIndexes" :
[
0
]
},
{
"build" : "glm",
"jsonFile" : "directory-glm-Debug-ab70d989331aa8f80f5f.json",
"minimumCMakeVersion" :
{
"string" : "3.21"
},
"parentIndex" : 0,
"projectIndex" : 0,
"source" : "glm"
}
],
"name" : "Debug",
"projects" :
[
{
"childIndexes" :
[
1
],
"directoryIndexes" :
[
0,
4,
5
],
"name" : "Exponent",
"targetIndexes" :
[
0
]
},
{
"directoryIndexes" :
[
1,
2,
3
],
"name" : "GLFW",
"parentIndex" : 0,
"targetIndexes" :
[
1,
2,
3
]
}
],
"targets" :
[
{
"directoryIndex" : 4,
"id" : "Exponent::@145eef247bfb46b6828c",
"jsonFile" : "target-Exponent-Debug-13b2fb7dd88601dcdb73.json",
"name" : "Exponent",
"projectIndex" : 0
},
{
"directoryIndex" : 2,
"id" : "glfw::@12507ebf64a5258d241e",
"jsonFile" : "target-glfw-Debug-52ae90bdbc6a76b6b61f.json",
"name" : "glfw",
"projectIndex" : 1
},
{
"directoryIndex" : 1,
"id" : "uninstall::@eb154563b92743f6cbb3",
"jsonFile" : "target-uninstall-Debug-a857158ed68aea65057d.json",
"name" : "uninstall",
"projectIndex" : 1
},
{
"directoryIndex" : 2,
"id" : "update_mappings::@12507ebf64a5258d241e",
"jsonFile" : "target-update_mappings-Debug-e6eaa5948496859ae002.json",
"name" : "update_mappings",
"projectIndex" : 1
}
]
}
],
"kind" : "codemodel",
"paths" :
{
"build" : "E:/OneDrive/Documents/Projects/Exponent/build",
"source" : "E:/OneDrive/Documents/Projects/Exponent"
},
"version" :
{
"major" : 2,
"minor" : 6
}
}

View File

@ -1,14 +0,0 @@
{
"backtraceGraph" :
{
"commands" : [],
"files" : [],
"nodes" : []
},
"installers" : [],
"paths" :
{
"build" : ".",
"source" : "."
}
}

View File

@ -1,100 +0,0 @@
{
"backtraceGraph" :
{
"commands" :
[
"install"
],
"files" :
[
"glfw/CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 141,
"parent" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 144,
"parent" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 148,
"parent" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 151,
"parent" : 0
}
]
},
"installers" :
[
{
"backtrace" : 1,
"component" : "Unspecified",
"destination" : "include",
"paths" :
[
"glfw/include/GLFW"
],
"type" : "directory"
},
{
"backtrace" : 2,
"component" : "Unspecified",
"destination" : "lib/cmake/glfw3",
"paths" :
[
"build/glfw/src/glfw3Config.cmake",
"build/glfw/src/glfw3ConfigVersion.cmake"
],
"type" : "file"
},
{
"backtrace" : 3,
"component" : "Unspecified",
"destination" : "lib/cmake/glfw3",
"exportName" : "glfwTargets",
"exportTargets" :
[
{
"id" : "glfw::@12507ebf64a5258d241e",
"index" : 1
}
],
"paths" :
[
"glfw/CMakeFiles/Export/f367bd07922f2ecfc14cf5547f1f7c4e/glfw3Targets.cmake"
],
"type" : "export"
},
{
"backtrace" : 4,
"component" : "Unspecified",
"destination" : "lib/pkgconfig",
"paths" :
[
"build/glfw/src/glfw3.pc"
],
"type" : "file"
}
],
"paths" :
{
"build" : "glfw",
"source" : "glfw"
}
}

View File

@ -1,14 +0,0 @@
{
"backtraceGraph" :
{
"commands" : [],
"files" : [],
"nodes" : []
},
"installers" : [],
"paths" :
{
"build" : "glfw/docs",
"source" : "glfw/docs"
}
}

View File

@ -1,45 +0,0 @@
{
"backtraceGraph" :
{
"commands" :
[
"install"
],
"files" :
[
"glfw/src/CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 362,
"parent" : 0
}
]
},
"installers" :
[
{
"backtrace" : 1,
"component" : "Unspecified",
"destination" : "lib",
"paths" :
[
"glfw/src/libglfw3.a"
],
"targetId" : "glfw::@12507ebf64a5258d241e",
"targetIndex" : 1,
"type" : "target"
}
],
"paths" :
{
"build" : "glfw/src",
"source" : "glfw/src"
}
}

View File

@ -1,14 +0,0 @@
{
"backtraceGraph" :
{
"commands" : [],
"files" : [],
"nodes" : []
},
"installers" : [],
"paths" :
{
"build" : "glm",
"source" : "glm"
}
}

View File

@ -1,14 +0,0 @@
{
"backtraceGraph" :
{
"commands" : [],
"files" : [],
"nodes" : []
},
"installers" : [],
"paths" :
{
"build" : "src",
"source" : "src"
}
}

View File

@ -1,132 +0,0 @@
{
"cmake" :
{
"generator" :
{
"multiConfig" : false,
"name" : "MinGW Makefiles"
},
"paths" :
{
"cmake" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe",
"cpack" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cpack.exe",
"ctest" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/ctest.exe",
"root" : "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28"
},
"version" :
{
"isDirty" : false,
"major" : 3,
"minor" : 28,
"patch" : 0,
"string" : "3.28.0-msvc1",
"suffix" : "msvc1"
}
},
"objects" :
[
{
"jsonFile" : "codemodel-v2-9476b44d5066a9013f4d.json",
"kind" : "codemodel",
"version" :
{
"major" : 2,
"minor" : 6
}
},
{
"jsonFile" : "cache-v2-1b82f29f01ef9ec5257e.json",
"kind" : "cache",
"version" :
{
"major" : 2,
"minor" : 0
}
},
{
"jsonFile" : "cmakeFiles-v1-d8eb8a68cb214ae78945.json",
"kind" : "cmakeFiles",
"version" :
{
"major" : 1,
"minor" : 0
}
},
{
"jsonFile" : "toolchains-v1-c298ea1aef19e6997d23.json",
"kind" : "toolchains",
"version" :
{
"major" : 1,
"minor" : 0
}
}
],
"reply" :
{
"client-vscode" :
{
"query.json" :
{
"requests" :
[
{
"kind" : "cache",
"version" : 2
},
{
"kind" : "codemodel",
"version" : 2
},
{
"kind" : "toolchains",
"version" : 1
},
{
"kind" : "cmakeFiles",
"version" : 1
}
],
"responses" :
[
{
"jsonFile" : "cache-v2-1b82f29f01ef9ec5257e.json",
"kind" : "cache",
"version" :
{
"major" : 2,
"minor" : 0
}
},
{
"jsonFile" : "codemodel-v2-9476b44d5066a9013f4d.json",
"kind" : "codemodel",
"version" :
{
"major" : 2,
"minor" : 6
}
},
{
"jsonFile" : "toolchains-v1-c298ea1aef19e6997d23.json",
"kind" : "toolchains",
"version" :
{
"major" : 1,
"minor" : 0
}
},
{
"jsonFile" : "cmakeFiles-v1-d8eb8a68cb214ae78945.json",
"kind" : "cmakeFiles",
"version" :
{
"major" : 1,
"minor" : 0
}
}
]
}
}
}
}

View File

@ -1,169 +0,0 @@
{
"artifacts" :
[
{
"path" : "src/Exponent.exe"
},
{
"path" : "src/Exponent.pdb"
}
],
"backtrace" : 1,
"backtraceGraph" :
{
"commands" :
[
"add_executable",
"target_link_libraries",
"target_compile_definitions",
"target_include_directories"
],
"files" :
[
"src/CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 1,
"parent" : 0
},
{
"command" : 1,
"file" : 0,
"line" : 6,
"parent" : 0
},
{
"command" : 2,
"file" : 0,
"line" : 9,
"parent" : 0
},
{
"command" : 3,
"file" : 0,
"line" : 7,
"parent" : 0
}
]
},
"compileGroups" :
[
{
"compileCommandFragments" :
[
{
"fragment" : "-g -std=gnu++20"
}
],
"defines" :
[
{
"backtrace" : 3,
"define" : "GLFW_INCLUDE_NONE"
}
],
"includes" :
[
{
"backtrace" : 4,
"path" : "E:/OneDrive/Documents/Projects/Exponent/include"
},
{
"backtrace" : 2,
"path" : "E:/OneDrive/Documents/Projects/Exponent/glfw/include"
},
{
"backtrace" : 2,
"path" : "E:/OneDrive/Documents/Projects/Exponent"
}
],
"language" : "CXX",
"languageStandard" :
{
"backtraces" :
[
1
],
"standard" : "20"
},
"sourceIndexes" :
[
0,
1
]
}
],
"dependencies" :
[
{
"backtrace" : 2,
"id" : "glfw::@12507ebf64a5258d241e"
}
],
"id" : "Exponent::@145eef247bfb46b6828c",
"link" :
{
"commandFragments" :
[
{
"fragment" : "-g",
"role" : "flags"
},
{
"fragment" : "",
"role" : "flags"
},
{
"backtrace" : 2,
"fragment" : "..\\glfw\\src\\libglfw3.a",
"role" : "libraries"
},
{
"fragment" : "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32",
"role" : "libraries"
}
],
"language" : "CXX"
},
"name" : "Exponent",
"nameOnDisk" : "Exponent.exe",
"paths" :
{
"build" : "src",
"source" : "src"
},
"sourceGroups" :
[
{
"name" : "Source Files",
"sourceIndexes" :
[
0,
1
]
}
],
"sources" :
[
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "src/main.cc",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "src/GLProgramLoader.cc",
"sourceGroupIndex" : 0
}
],
"type" : "EXECUTABLE"
}

View File

@ -1,439 +0,0 @@
{
"archive" : {},
"artifacts" :
[
{
"path" : "glfw/src/libglfw3.a"
}
],
"backtrace" : 1,
"backtraceGraph" :
{
"commands" :
[
"add_library",
"install",
"target_compile_options",
"target_compile_definitions",
"target_include_directories",
"set_target_properties",
"target_sources"
],
"files" :
[
"glfw/src/CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 2,
"parent" : 0
},
{
"command" : 1,
"file" : 0,
"line" : 362,
"parent" : 0
},
{
"command" : 2,
"file" : 0,
"line" : 256,
"parent" : 0
},
{
"command" : 3,
"file" : 0,
"line" : 260,
"parent" : 0
},
{
"command" : 3,
"file" : 0,
"line" : 268,
"parent" : 0
},
{
"command" : 3,
"file" : 0,
"line" : 40,
"parent" : 0
},
{
"command" : 4,
"file" : 0,
"line" : 132,
"parent" : 0
},
{
"command" : 4,
"file" : 0,
"line" : 135,
"parent" : 0
},
{
"command" : 5,
"file" : 0,
"line" : 122,
"parent" : 0
},
{
"command" : 6,
"file" : 0,
"line" : 16,
"parent" : 0
},
{
"command" : 6,
"file" : 0,
"line" : 41,
"parent" : 0
}
]
},
"compileGroups" :
[
{
"compileCommandFragments" :
[
{
"fragment" : "-g -std=c99"
},
{
"backtrace" : 3,
"fragment" : "-Wall"
}
],
"defines" :
[
{
"backtrace" : 4,
"define" : "UNICODE"
},
{
"backtrace" : 5,
"define" : "WINVER=0x0501"
},
{
"backtrace" : 6,
"define" : "_GLFW_WIN32"
},
{
"backtrace" : 4,
"define" : "_UNICODE"
}
],
"includes" :
[
{
"backtrace" : 7,
"path" : "E:/OneDrive/Documents/Projects/Exponent/glfw/include"
},
{
"backtrace" : 8,
"path" : "E:/OneDrive/Documents/Projects/Exponent/glfw/src"
},
{
"backtrace" : 8,
"path" : "E:/OneDrive/Documents/Projects/Exponent/build/glfw/src"
}
],
"language" : "C",
"languageStandard" :
{
"backtraces" :
[
9
],
"standard" : "99"
},
"sourceIndexes" :
[
5,
6,
7,
8,
9,
10,
11,
12,
13,
16,
17,
18,
19,
22,
23,
24,
27,
28,
29,
30,
31
]
}
],
"folder" :
{
"name" : "GLFW3"
},
"id" : "glfw::@12507ebf64a5258d241e",
"install" :
{
"destinations" :
[
{
"backtrace" : 2,
"path" : "lib"
}
],
"prefix" :
{
"path" : "C:/Program Files (x86)/Exponent"
}
},
"name" : "glfw",
"nameOnDisk" : "libglfw3.a",
"paths" :
{
"build" : "glfw/src",
"source" : "glfw/src"
},
"sourceGroups" :
[
{
"name" : "Header Files",
"sourceIndexes" :
[
0,
1,
2,
3,
4,
14,
15,
20,
21,
25,
26
]
},
{
"name" : "Source Files",
"sourceIndexes" :
[
5,
6,
7,
8,
9,
10,
11,
12,
13,
16,
17,
18,
19,
22,
23,
24,
27,
28,
29,
30,
31
]
}
],
"sources" :
[
{
"backtrace" : 1,
"path" : "glfw/include/GLFW/glfw3.h",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "glfw/include/GLFW/glfw3native.h",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "glfw/src/internal.h",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "glfw/src/platform.h",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "glfw/src/mappings.h",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "glfw/src/context.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "glfw/src/init.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "glfw/src/input.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "glfw/src/monitor.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "glfw/src/platform.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "glfw/src/vulkan.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "glfw/src/window.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "glfw/src/egl_context.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "glfw/src/osmesa_context.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"path" : "glfw/src/null_platform.h",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "glfw/src/null_joystick.h",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "glfw/src/null_init.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "glfw/src/null_monitor.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "glfw/src/null_window.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"compileGroupIndex" : 0,
"path" : "glfw/src/null_joystick.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 10,
"path" : "glfw/src/win32_time.h",
"sourceGroupIndex" : 0
},
{
"backtrace" : 10,
"path" : "glfw/src/win32_thread.h",
"sourceGroupIndex" : 0
},
{
"backtrace" : 10,
"compileGroupIndex" : 0,
"path" : "glfw/src/win32_module.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 10,
"compileGroupIndex" : 0,
"path" : "glfw/src/win32_time.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 10,
"compileGroupIndex" : 0,
"path" : "glfw/src/win32_thread.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 11,
"path" : "glfw/src/win32_platform.h",
"sourceGroupIndex" : 0
},
{
"backtrace" : 11,
"path" : "glfw/src/win32_joystick.h",
"sourceGroupIndex" : 0
},
{
"backtrace" : 11,
"compileGroupIndex" : 0,
"path" : "glfw/src/win32_init.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 11,
"compileGroupIndex" : 0,
"path" : "glfw/src/win32_joystick.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 11,
"compileGroupIndex" : 0,
"path" : "glfw/src/win32_monitor.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 11,
"compileGroupIndex" : 0,
"path" : "glfw/src/win32_window.c",
"sourceGroupIndex" : 1
},
{
"backtrace" : 11,
"compileGroupIndex" : 0,
"path" : "glfw/src/wgl_context.c",
"sourceGroupIndex" : 1
}
],
"type" : "STATIC_LIBRARY"
}

View File

@ -1,70 +0,0 @@
{
"backtrace" : 1,
"backtraceGraph" :
{
"commands" :
[
"add_custom_target"
],
"files" :
[
"glfw/CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 159,
"parent" : 0
}
]
},
"folder" :
{
"name" : "GLFW3"
},
"id" : "uninstall::@eb154563b92743f6cbb3",
"name" : "uninstall",
"paths" :
{
"build" : "glfw",
"source" : "glfw"
},
"sourceGroups" :
[
{
"name" : "",
"sourceIndexes" :
[
0
]
},
{
"name" : "CMake Rules",
"sourceIndexes" :
[
1
]
}
],
"sources" :
[
{
"backtrace" : 1,
"isGenerated" : true,
"path" : "build/glfw/CMakeFiles/uninstall",
"sourceGroupIndex" : 0
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/glfw/CMakeFiles/uninstall.rule",
"sourceGroupIndex" : 1
}
],
"type" : "UTILITY"
}

View File

@ -1,88 +0,0 @@
{
"backtrace" : 1,
"backtraceGraph" :
{
"commands" :
[
"add_custom_target"
],
"files" :
[
"glfw/src/CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 23,
"parent" : 0
}
]
},
"folder" :
{
"name" : "GLFW3"
},
"id" : "update_mappings::@12507ebf64a5258d241e",
"name" : "update_mappings",
"paths" :
{
"build" : "glfw/src",
"source" : "glfw/src"
},
"sourceGroups" :
[
{
"name" : "Header Files",
"sourceIndexes" :
[
0
]
},
{
"name" : "",
"sourceIndexes" :
[
1,
2
]
},
{
"name" : "CMake Rules",
"sourceIndexes" :
[
3
]
}
],
"sources" :
[
{
"backtrace" : 1,
"path" : "glfw/src/mappings.h.in",
"sourceGroupIndex" : 0
},
{
"backtrace" : 1,
"path" : "glfw/CMake/GenerateMappings.cmake",
"sourceGroupIndex" : 1
},
{
"backtrace" : 1,
"isGenerated" : true,
"path" : "build/glfw/src/CMakeFiles/update_mappings",
"sourceGroupIndex" : 1
},
{
"backtrace" : 0,
"isGenerated" : true,
"path" : "build/glfw/src/CMakeFiles/update_mappings.rule",
"sourceGroupIndex" : 2
}
],
"type" : "UTILITY"
}

View File

@ -1,100 +0,0 @@
{
"kind" : "toolchains",
"toolchains" :
[
{
"compiler" :
{
"implicit" : {},
"path" : "C:/msys64/ucrt64/bin/gcc.exe"
},
"language" : "C"
},
{
"compiler" :
{
"id" : "GNU",
"implicit" :
{
"includeDirectories" :
[
"C:/msys64/ucrt64/include/c++/13.2.0",
"C:/msys64/ucrt64/include/c++/13.2.0/x86_64-w64-mingw32",
"C:/msys64/ucrt64/include/c++/13.2.0/backward",
"C:/msys64/ucrt64/lib/gcc/x86_64-w64-mingw32/13.2.0/include",
"C:/msys64/ucrt64/include",
"C:/msys64/ucrt64/lib/gcc/x86_64-w64-mingw32/13.2.0/include-fixed"
],
"linkDirectories" :
[
"C:/msys64/ucrt64/lib/gcc/x86_64-w64-mingw32/13.2.0",
"C:/msys64/ucrt64/lib/gcc",
"C:/msys64/ucrt64/x86_64-w64-mingw32/lib",
"C:/msys64/ucrt64/lib"
],
"linkFrameworkDirectories" : [],
"linkLibraries" :
[
"stdc++",
"mingw32",
"gcc_s",
"gcc",
"moldname",
"mingwex",
"kernel32",
"pthread",
"advapi32",
"shell32",
"user32",
"kernel32",
"mingw32",
"gcc_s",
"gcc",
"moldname",
"mingwex",
"kernel32"
]
},
"path" : "C:/msys64/ucrt64/bin/g++.exe",
"version" : "13.2.0"
},
"language" : "CXX",
"sourceFileExtensions" :
[
"C",
"M",
"c++",
"cc",
"cpp",
"cxx",
"m",
"mm",
"mpp",
"CPP",
"ixx",
"cppm",
"ccm",
"cxxm",
"c++m"
]
},
{
"compiler" :
{
"implicit" : {},
"path" : "C:/msys64/ucrt64/bin/windres.exe"
},
"language" : "RC",
"sourceFileExtensions" :
[
"rc",
"RC"
]
}
],
"version" :
{
"major" : 1,
"minor" : 0
}
}

View File

@ -8,10 +8,16 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <array>
// This has to come last. // This has to come last.
#define GLAD_GL_IMPLEMENTATION #define GLAD_GL_IMPLEMENTATION
#include <glad/gl.h> #include <glad/gl.h>
#include <glm/glm.hpp>
#include <glm/ext.hpp>
#include <glm/mat2x2.hpp>
static void dbg_log(const char* str) { static void dbg_log(const char* str) {
std::cout << str << std::endl; std::cout << str << std::endl;
} }
@ -27,7 +33,8 @@ static void key_callback(GLFWwindow *w, int key, int scancode, int action, int m
GLuint g_program_id = 0; GLuint g_program_id = 0;
static GLuint time_unif; static GLuint translate_unif;
static GLuint rotate_unif;
static void init_shaders() { static void init_shaders() {
dbg_log("Initialising shaders"); dbg_log("Initialising shaders");
@ -47,36 +54,55 @@ static void init_shaders() {
glUseProgram(g_program_id); glUseProgram(g_program_id);
glGetUniformLocation(g_program_id, "time"); translate_unif = glGetUniformLocation(g_program_id, "world_pos");
rotate_unif = glGetUniformLocation(g_program_id, "rotation");
} }
static const GLfloat verts[6] = { class Triangle {
0.0f, 0.0f, 0.0f, 0.5f, 0.5f, 0.0f public:
GLfloat data[6];
float m_pos_x;
float m_pos_y;
float rotation = 0.2f;
Triangle(std::array<glm::vec2, 3> verts) {
for (std::size_t i = 0; i < 3; i++) {
data[i*2] = verts[i][0];
data[i*2+1] = verts[i][1];
}
}
std::array<float, 2> get_world_projection() {
return std::array<float, 2>({m_pos_x, m_pos_y});
}
}; };
static GLuint vertex_buf; static GLuint vertex_buf[2];
static GLuint array_buf; static GLuint array_buf[2];
static const GLuint vertex_data_position = 0; static const GLuint vertex_data_position = 0;
static Triangle o1(std::array<glm::vec2, 3>({
{0.0f, 0.0f},
{0.5f, 0.0f},
{0.5f, 0.5f}
}));
// Do the work of initialising opengl so we can draw stuff // Do the work of initialising opengl so we can draw stuff
static void init_opengl() { static void init_opengl() {
dbg_log("Initialising opengl"); dbg_log("Initialising opengl");
// Configure the context's capabilities // Configure the context's capabilities
glClearColor(0.0, 0.0, 0.0, 1.0); glClearColor(0.0, 0.0, 0.0, 1.0);
glGenVertexArrays(1, &array_buf); glGenVertexArrays(2, array_buf);
glBindVertexArray(array_buf); glBindVertexArray(array_buf[0]);
glGenBuffers(1, &vertex_buf);
glBindBuffer(GL_ARRAY_BUFFER, vertex_buf);
glBufferData(GL_ARRAY_BUFFER, sizeof(verts), verts, GL_STATIC_DRAW);
init_shaders();
glGenBuffers(2, vertex_buf);
glBindBuffer(GL_ARRAY_BUFFER, vertex_buf[0]);
glBufferData(GL_ARRAY_BUFFER, sizeof(Triangle::data), o1.data, GL_STATIC_DRAW);
glVertexAttribPointer(vertex_data_position, 2, GL_FLOAT, GL_FALSE, 0, NULL); glVertexAttribPointer(vertex_data_position, 2, GL_FLOAT, GL_FALSE, 0, NULL);
glEnableVertexAttribArray(vertex_data_position); glEnableVertexAttribArray(vertex_data_position);
init_shaders();
} }
int main() { int main() {
@ -107,23 +133,15 @@ int main() {
// Main Loop // Main Loop
while(!glfwWindowShouldClose(w)) { while(!glfwWindowShouldClose(w)) {
/*
int width, height;
glfwGetFramebufferSize(w, &width, &height);
glViewport(0, 0, width, height);
glClear(GL_COLOR_BUFFER_BIT);
*/
float time = glfwGetTime(); float time = glfwGetTime();
glClear(GL_COLOR_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT);
glUniform1f(time_unif, time); glUniform2fv(translate_unif, 1, o1.get_world_projection().data());
glBindVertexArray(array_buf); glUniform1f(rotate_unif, o1.rotation);
glDrawArrays(GL_TRIANGLES, 0, 3);
// TODO Draw primitives glBindVertexArray(array_buf[0]);
glDrawArrays(GL_TRIANGLES, 0, 3);
glfwSwapBuffers(w); glfwSwapBuffers(w);
glfwPollEvents(); glfwPollEvents();

View File

@ -2,15 +2,14 @@
layout (location = 0) in vec4 v_position; layout (location = 0) in vec4 v_position;
uniform float time; uniform vec2 world_pos;
uniform float rotation;
// Simple passthrough shader for now. // Simple passthrough shader for now.
void main() { void main() {
vec2 new_xy = v_position.xy * mat2x2( mat2x2 rot_mat = mat2x2(cos(rotation), sin(rotation), -sin(rotation), cos(rotation));
cos(time), -sin(time),
sin(time), cos(time) vec2 new_xy = v_position.xy * rot_mat + world_pos;
);
vec4 new_position = vec4(new_xy.x, new_xy.y, 0.0, 1.0); vec4 new_position = vec4(new_xy.x, new_xy.y, 0.0, 1.0);
gl_Position = new_position; gl_Position = new_position;