openglonmetal / MGL

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

Can you please describe how to integrate MGL to project? [Not an issue] #39

Open keviny1981 opened 2 years ago

keviny1981 commented 2 years ago

I found this repo while I was blocked by limitation of Metal which only support upto GLSL 4.1 My engine is based on GLSL 4.6 that can't be compiled on Apple Silicon M1.

Would you please show off how to integrate MGL to c++ project on Visual Studio Code?

Thanks in advance,

conversy commented 2 years ago

Hi,

You need to be able to compile it. I use makeand the provided Makefile.

You may have a look at test_mgl/main.cpp, which uses either glfw or SDL2. Look at the main function, both versions are pretty short.

conversy commented 2 years ago

you can also have a look at the wiki I set up a while ago (see first "issue")