opengl的话就是链接器里的输入改一下然后把bin,lib,include该放的放一下就好了
建议先去看我Vulkan那一篇
Vulkan比OpenGL好点
* 解释:GLUT/什么什么的比如glut/glut.h这个我放在gl里面了要用直接gl/glut.h
里面有glfw,glut,glew,glu,glad,glx,SDL等等基本的
链接器:
glfw3.dll
glfw3.lib
glfw3_mt.lib
glfw3dll.lib
SDL_mixer.lib
freeglut.lib
glew32.lib
glew32s.lib
如果要加上Vulkan就复制下面这段粘贴上去就可以了
glfw3.lib
glfw3_mt.lib
glfw3dll.lib
SPIRV-Tools-shared.lib
SPIRV-Tools-sharedd.lib
SPVRemapper.lib
SPVRemapperd.lib
volk.lib
vulkan-1.lib
dxcompiler.lib
GenericCodeGen.lib
GenericCodeGend.lib
glslang.lib
glslangd.lib
glslang-default-resource-limits.lib
glslang-default-resource-limitsd.lib
HLSL.lib
HLSLd.lib
MachineIndependent.lib
MachineIndependentd.lib
OGLCompiler.lib
OGLCompilerd.lib
OSDependent.lib
OSDependentd.lib
SDL2.lib
SDL2_test.lib
SDL2main.lib
SDL2-static.lib
shaderc.lib
shaderc_combined.lib
shaderc_combinedd.lib
shaderc_shared.lib
shaderc_sharedd.lib
shaderc_util.lib
shaderc_utild.lib
shadercd.lib
SPIRV.lib
spirv-cross-c.lib
spirv-cross-cd.lib
spirv-cross-core.lib
spirv-cross-cored.lib
spirv-cross-cpp.lib
spirv-cross-cppd.lib
spirv-cross-c-shared.lib
spirv-cross-c-sharedd.lib
spirv-cross-glsl.lib
spirv-cross-glsld.lib
spirv-cross-hlsl.lib
spirv-cross-hlsld.lib
spirv-cross-msl.lib
spirv-cross-msld.lib
spirv-cross-reflect.lib
spirv-cross-reflectd.lib
spirv-cross-util.lib
spirv-cross-utild.lib
SPIRVd.lib
SPIRV-Tools.lib
SPIRV-Toolsd.lib
SPIRV-Tools-diff.lib
SPIRV-Tools-diffd.lib
SPIRV-Tools-link.lib
SPIRV-Tools-linkd.lib
SPIRV-Tools-lint.lib
SPIRV-Tools-lintd.lib
SPIRV-Tools-opt.lib
SPIRV-Tools-reduced.lib
SPIRV-Tools-optd.lib
SPIRV-Tools-reduce.lib
glfw3.dll
glfw3.lib
glfw3_mt.lib
glfw3dll.lib
SDL_mixer.lib
freeglut.lib
glew32.lib
glew32s.lib