fossvg (client): Commit to using Vulkan
I have decided that we are going to use Vulkan for this. Hopefully, it works out. This commit removes some OpenGL-specific things and adds Vulkan to the build command line.master
parent
4c651d1b6f
commit
4247bd295a
|
@ -63,7 +63,7 @@ COMPILE_COMMANDS=(
|
|||
"$CXX_WITH_FLAGS src/tools/arraydump.cpp -I./include -Lbin/lib -l:file.so -l:cli.so -o bin/tools/arraydump"
|
||||
"$CXX_WITH_FLAGS src/tools/baseconvert.cpp -I./include -Lbin/lib -l:cli.so -o bin/tools/baseconvert"
|
||||
"$CXX_WITH_FLAGS -pthread src/tools/hexnet.cpp -I./include -Lbin/lib -l:cli.so -l:libsockpp.so -o bin/tools/hexnet"
|
||||
"$CXX_WITH_FLAGS src/fossvg.cpp -I./include -Lbin/lib -l:cli.so -lglfw -o bin/fossvg"
|
||||
"$CXX_WITH_FLAGS -DFOSSVG_DEBUG src/fossvg.cpp -I./include -Lbin/lib -l:cli.so -lglfw -lvulkan -o bin/fossvg"
|
||||
"$CXX_WITH_FLAGS src/fossvgd.cpp -I./include -Lbin/lib -l:cli.so -o bin/fossvgd"
|
||||
)
|
||||
for command in ${!COMPILE_COMMANDS[@]}; do
|
||||
|
|
|
@ -113,9 +113,6 @@ int main(int argc, char* argv[]) {
|
|||
return EXIT_RUNTIME;
|
||||
}
|
||||
|
||||
// What dis do? It was in a tutorial.
|
||||
glfwMakeContextCurrent(window);
|
||||
|
||||
glfwSetCursorPosCallback(window, cursorPositionCallback);
|
||||
glfwSetKeyCallback(window, keyCallback);
|
||||
glfwSetCharCallback(window, textInputCallback);
|
||||
|
@ -124,9 +121,6 @@ int main(int argc, char* argv[]) {
|
|||
glfwSetScrollCallback(window, scrollCallback);
|
||||
|
||||
while (!glfwWindowShouldClose(window)) {
|
||||
|
||||
glfwSwapBuffers(window);
|
||||
|
||||
glfwPollEvents();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue