openglonmetal / MGL

OpenGL 4.6 on Metal
Apache License 2.0
781 stars 30 forks source link

Fix xcode build #44

Closed r58Playz closed 2 years ago

r58Playz commented 2 years ago

Also reverts https://github.com/openglonmetal/MGL/commit/d0e034508573e2a66034fa44d9202eff740f09ca because test_mgl_glfw is supposed to test mgl, not regular apple opengl.

You can now run test_mgl_glfw in xcode, which lets you easily turn on metal api validation which reveals an error with the viewport!

Screen Shot 2022-07-29 at 3 16 00 PM
dokipen3d commented 2 years ago

nice ill give the xcode build a try :)

dokipen3d commented 2 years ago

tried it and got one error....

Showing All Messages /Users/danielelliott/Documents/projects/MGL_dokip2/MGL/include/glm_context.h:25:10: 'glslang_c_interface.h' file not found

Screen Shot 2022-07-30 at 5 02 18 PM
dokipen3d commented 2 years ago

I had to add two more entries to the MGL header search path and now it works.

$(SRCROOT)/external/glslang/glslang/Include
$(SRCROOT)/external/SPIRV-Cross
Screen Shot 2022-07-30 at 5 13 01 PM