Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use glfw to implement simulator on desktop. #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yihuang
Copy link

@yihuang yihuang commented Sep 20, 2018

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

@karl-rousseau
Copy link

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
Copy link

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

@r-lyeh
Copy link

r-lyeh commented Jul 21, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants