🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
2.3 KiB

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