README-windows.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ================================================================================
  2. Simple DirectMedia Layer for Windows
  3. ================================================================================
  4. ================================================================================
  5. OpenGL ES 2.x support
  6. ================================================================================
  7. SDL has support for OpenGL ES 2.x under Windows via two alternative
  8. implementations.
  9. The most straightforward method consists in running your app in a system with
  10. a graphic card paired with a relatively recent (as of November of 2013) driver
  11. which supports the WGL_EXT_create_context_es2_profile extension. Vendors known
  12. to ship said extension on Windows currently include nVidia and Intel.
  13. The other method involves using the ANGLE library (https://code.google.com/p/angleproject/)
  14. If an OpenGL ES 2.x context is requested and no WGL_EXT_create_context_es2_profile
  15. extension is found, SDL will try to load the libEGL.dll library provided by
  16. ANGLE.
  17. To obtain the ANGLE binaries, you can either compile from source from
  18. https://chromium.googlesource.com/angle/angle or copy the relevant binaries from
  19. a recent Chrome/Chromium install for Windows. The files you need are:
  20. * libEGL.dll
  21. * libGLESv2.dll
  22. * d3dcompiler_46.dll (supports Windows Vista or later, better shader compiler)
  23. or...
  24. * d3dcompiler_43.dll (supports Windows XP or later)
  25. If you compile ANGLE from source, you can configure it so it does not need the
  26. d3dcompiler_* DLL at all (for details on this, see their documentation).
  27. However, by default SDL will try to preload the d3dcompiler_46.dll to
  28. comply with ANGLE's requirements. If you wish SDL to preload d3dcompiler_43.dll (to
  29. support Windows XP) or to skip this step at all, you can use the
  30. SDL_HINT_VIDEO_WIN_D3DCOMPILER hint (see SDL_hints.h for more details).
  31. Known Bugs:
  32. * SDL_GL_SetSwapInterval is currently a no op when using ANGLE. It appears
  33. that there's a bug in the library which prevents the window contents from
  34. refreshing if this is set to anything other than the default value.