Friday, November 10, 2017

Using OpenGL ES 2.0 with SDL2 via ANGLE

It turns out that the newest SDL2 version (2.0.7) has some special hint support for using the ANGLE library on Microsoft Windows as your OpenGL ES 2.0 library.
  1. Build SDL2 and ANGLE.
    • One oddity that you may need to account for is that SDL2 and ANGLE each use a different C run-time library by default, so you'll probably want them to agree.
  2. Put your libraries and DLLs in the appropriate spots.
    • For ANGLE, it makes sense to link directly to libGLESv2.lib so that all of our symbols are defined, but you can do the usual shenanigans with function loading from either the libGLESv2 DLL directly or from SDL_GL_GetProcAddr();
  3. When trying to use OpenGL ES 2.0 from SDL2 on MS Windows, these lines are the magic ones:

Thursday, June 22, 2017

Microsoft Visual Studio 2017 Command Line

The command line batch files have been moved... The new location for vcvarsall.bat and friends is:
  • C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build
Of course, you could always just go to the Start Menu and use
  • Visual Studio 2017 →  Visual Studio Tools → Developer Command Prompt for VS 2017

Monday, January 30, 2017

Simple Web Server

I needed to stand up a simple web server to test some WebGL code. It turns out that if you just need a basic HTTP server, Python has you covered in their standard library! You just run the following from what you want to be your web root folder:

python -m SimpleHTTPServer