From e28543c930ad6a890e8ea5e58206d6a4a4558639 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 9 Sep 2010 21:08:50 +0200 Subject: [PATCH] Added error tokens (oops). --- include/GL/glfw.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/GL/glfw.h b/include/GL/glfw.h index c5dc8e0d..e8485c26 100644 --- a/include/GL/glfw.h +++ b/include/GL/glfw.h @@ -350,6 +350,18 @@ extern "C" { #define GLFW_AXES 0x00050002 #define GLFW_BUTTONS 0x00050003 +/* glfwGetError/glfwErrorString tokens */ +#define GLFW_NO_ERROR 0 +#define GLFW_NOT_INITIALIZED 0x00070001 +#define GLFW_INVALID_ENUM 0x00070002 +#define GLFW_INVALID_VALUE 0x00070003 +#define GLFW_OUT_OF_MEMORY 0x00070004 +#define GLFW_OPENGL_NOT_SUPPORTED 0x00070005 +#define GLFW_NO_PIXEL_FORMAT 0x00070006 +#define GLFW_VIDEO_MODE_FAILED 0x00070007 +#define GLFW_UNAVAILABLE_VERSION 0x00070008 +#define GLFW_NO_CURRENT_WINDOW 0x00070009 +#define GLFW_INTERNAL_ERROR 0x0007000A /************************************************************************* * Typedefs