glfm
glfm copied to clipboard
Use glfw to implement simulator on desktop.
The implementation is not complete, more like a proof of concept.
Hello Yihuang,
Just to inform you that it is compiling fine but on my side I needed first to run those commands on Mac OS X in order to properly find the external library GLFW that XCode is wanting:
brew install glfw3
/bin/launchctl setenv LIBRARY_PATH /usr/local/lib
/bin/launchctl setenv CPATH /usr/local/include
Then I followed the XCode instructions on the README.
Btw there are also the triangle shaders that do need to be converted from OpenGL ES to OpenGL.
varying vec3 v_color; void main() { gl_FragColor = vec4(v_color, 1.0); }
And the other one:
attribute vec3 a_position; attribute vec3 a_color; varying vec3 v_color; void main() { gl_Position = vec4(a_position, 1.0); v_color = a_color; }
Also, as an alternative to glfw, this is a tiny implementation that could get 95% of the base work done https://github.com/erkkah/tigr/tree/develop