Skip to content

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