Is there an atoi() equivalent for WCHAR strings?
strtolW() from wine/unicode.h - it's also aliased to atoiW() and atolW()
How do I determine what the OpenGL error is for the checkGLcall() macro?
The checkGLcall() macro is defined in wined3d_private.h, and it pulls the error codes from <GL/gl.h>:
#define GL_NO_ERROR 0 #define GL_INVALID_ENUM 0x500 #define GL_INVALID_VALUE 0x0501 #define GL_INVALID_OPERATION 0x0502 #define GL_STACK_OVERFLOW 0x0503 #define GL_STACK_UNDERFLOW 0x0504 #define GL_OUT_OF_MEMORY 0x0505 #define GL_TABLE_TOO_LARGE 0x8031
Back to Hacking Tips
