lunixbochs / glshim

OpenGL 1.x driver shim for OpenGL ES devices.
https://boards.openpandora.org/topic/11506-glshim/
MIT License
160 stars 32 forks source link

The Two Funs: int glRenderMode(GLenum mode); void glSelectBuffer(GLsizei size, GLuint* buffer); How i can use them in OPenglES?if can't,Do you have a good instead Plan? #173

Open thirdparty-core opened 6 years ago

thirdparty-core commented 6 years ago

The Two Funs: int glRenderMode(GLenum mode); void glSelectBuffer(GLsizei size, GLuint* buffer); How i can use them in Opengl ES?if can't,Do you have a better instead Plan? please......

lunixbochs commented 6 years ago

glshim implements these and all related commands/config:

https://github.com/lunixbochs/glshim/blob/unstable/src/gl/render.c#L9 https://github.com/lunixbochs/glshim/blob/unstable/src/gl/render.c#L78

If you want them in OpenGL ES, link against glshim instead of libGLESv1

thirdparty-core commented 6 years ago

hello, i want them in Android's OpenGL ES, i build it on windows error:fatal error: 'X11/Xlib.h' file not found, what i should to do?