Add support for X11+EGL.
authorSylvain Beucler <beuc@beuc.net>
Sun, 18 Mar 2012 12:38:07 +0000 (12:38 +0000)
committerSylvain Beucler <beuc@beuc.net>
Sun, 18 Mar 2012 12:38:07 +0000 (12:38 +0000)
commitb744f1401b990f642e96d4c65cc86eca5224efd1
tree2b3363d1f28c3ebc56043db6fa57ad0e862f0a22
parent87653f06a12512952a629eb3380980cfe445584c
Add support for X11+EGL.
The changes are made with minimalism and clarity in mind:
- Either the functions are common and are kept in _x11.c files
- Either the functions have small differences and dealt with #ifdef
- Either the functions are largely different, and split in:
  - Specialized portable code in egl/
  - Specialized GLX code in _x11_glx.c files

Using EGL or GLX is decided at compile time
(CMake FREEGLUT_GLES1 or FREEGLUT_GLES2 option enabled)..

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1196 7f0cb862-5218-0410-a997-914c9d46530a
CMakeLists.txt
src/x11/fg_init_x11.c
src/x11/fg_internal_x11.h
src/x11/fg_state_x11.c
src/x11/fg_structure_x11.c
src/x11/fg_window_x11.c