glfm icon indicating copy to clipboard operation
glfm copied to clipboard

Use glfw to implement simulator on desktop.

Open yihuang opened this issue 6 years ago • 3 comments

The implementation is not complete, more like a proof of concept.

yihuang avatar Sep 20 '18 08:09 yihuang

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.

karl-rousseau avatar Oct 01 '18 22:10 karl-rousseau

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; }

karl-rousseau avatar Oct 02 '18 19:10 karl-rousseau

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

r-lyeh avatar Jul 21 '20 08:07 r-lyeh