2014/1/23 slimshader <szymon.gatner at gmail.com>
gabomdq wrote:
2013/11/23 Norfanin <>
Quote:
Gabriel Jacobo wrote:
Quote:
Enjoy!
Excellent!
I don’t have NVIDIA, Intel or ANGLE so I went with the AMD OpenGL ES
SDK. Worked beautifully.The ANGLE workaround for WIN_GLES_SetSwapInterval gets in the way
though. Does ANGLE have some unique vendor string that could be used
to enable the workaround?Thanks for your work on this.
Yeah, it might be worth looking into a way to detect if we are dealing
with ANGLE or a real EGL implementation, or at least have a hint to disable
the workaround.–
Gabriel.Could you please provide minimal GL ES2 code for Windows? I am getting
unresolved externals to glClear, glClearColor, glGetString and glViewport
from SDL_main. Does SDL have to be compiled in different way to add ES
support? I am trying to make it work with ANGLE
You don’t need to do anything in particular…are you getting those errors
from your own project? Are you using Visual Studio? Which version? I only
updated the projects correctly for VS2013 as I don’t have the others and
for those I just changed the XML without being able to verify them.
Anyway, those symbols come from the GL library, you either need to link to
it (see ANGLE’s recommendations on how to set that up), or
SDL_LoadObject/SDL_LoadFunction the functions that you need (see
test/testgles2.c for an example of this), which can be a bit more involved
to set up (or you can just rip the functionality from inside SDL’s ES2
render code, or use a 3rd party library), but it’s easier to work with in
the end (and cross platform!).–
Gabriel.