rougier / freetype-gl

OpenGL text using one vertex buffer, one texture and FreeType
Other
1.65k stars 266 forks source link

CMAKE Install directive and limited Android Support #179

Closed ignitusboyone closed 6 years ago

ignitusboyone commented 6 years ago

I'm hoping you will accept these two commits.

The first simply modifies opengl.h to include GLES3/gl3.h when ANDROID is detected.

The second commit simply adds the ability to type make install for freetype-gl. The base headers and the static library will be placed in CMAKE_INSTALL_PREFIX/{include,lib}

rougier commented 6 years ago

Thanks. Does it work for any android system or is there a minimum version needed?

ignitusboyone commented 6 years ago

GLESv3 didn't become available in Android until Android 4.3 Jelly Bean (API 18) Android 4.3 Jelly Bean (API 18)

I think that should be sufficient for 90-85% of current Android devices. https://www.statista.com/statistics/271774/share-of-android-platforms-on-mobile-devices-with-android-os/

ignitusboyone commented 6 years ago

Header files were being installed as 004 instead of 444. I adjusted the cmake accordingly.

rougier commented 6 years ago

Ok. Thanks.