Commit Graph

28 Commits

Author SHA1 Message Date
Camilla Berglund
9cc8fc0d0a Removed glfwGetError and glfwErrorString.
The cached error code cannot be made per-thread unless it required
glfwInit (due to lack of __thread on OS X), which would be confusing and
partially defeats the purpose of it.

Beginners would use the generic error string facility instead of the
error callback and then be confused by its nondescript messages.

Storing the provided error code from within the error callback, whether
globally or per-thread, requires just a few lines of code and hands
control to the user without compromising thread safety.
2012-12-30 01:50:03 +01:00
Camilla Berglund
18d71c2b6d Made window-related callbacks per-window.
This makes polymorphic behaviour easier to implement and avoids the problem of
events being triggered before the GLFW window object is fully usable.
2012-10-29 13:36:01 +01:00
Camilla Berglund
2f095cc9e3 Removed implicit glfwMakeCurrentContext.
Implicitly making the context current makes sense in a
single-window API but less sense in a multi-window one.
2012-08-10 15:29:45 +02:00
Camilla Berglund
2410e2aaf4 Replaced automatic closing with window parameter. 2012-08-10 13:31:15 +02:00
Camilla Berglund
ddcf5d471e Removed mirroring of default framebuffer attribs. 2012-08-10 13:28:58 +02:00
Camilla Berglund
585a840329 Added window parameter to glfwSwapBuffers. 2012-08-06 18:13:37 +02:00
Camilla Berglund
aff30d0baa Renamed window creation/destruction functions.
Renamed glfwOpenWindow to glfwCreateWindow.
Renamed glfwCloseWindow to glfwDestroyWindow.
Renamed glfwOpenWindowHint to glfwWindowHint.
2012-08-06 17:59:34 +02:00
Camilla Berglund
2972cdfeb1 Removed glfwIsWindow. 2012-08-03 16:20:52 +02:00
Camilla Berglund
2213450840 Renamed GLFW_NO_GLU to GLFW_INCLUDE_GLU. 2012-06-05 23:55:10 +02:00
Camilla Berglund
6da82e0ffe Formatting. 2011-09-20 18:52:00 +02:00
Camilla Berglund
5983615f0e Moved all callback setting to before window opening, because I can. 2011-03-05 13:24:16 +01:00
Camilla Berglund
fa58cc393d Added check for GL_ARB_multisample to FSAA test. 2011-03-05 13:23:06 +01:00
Camilla Berglund
74c9b57f3d Added timer reset to FSAA test. 2011-03-05 13:17:39 +01:00
Camilla Berglund
ac03fa88f4 Corrected description. 2010-11-17 16:39:55 +01:00
Camilla Berglund
57e14372f2 Added getopt and sample count switch to FSAA test. 2010-11-17 16:26:32 +01:00
Camilla Berglund
940b69816c Made rendering and window size more sane. 2010-11-17 16:14:27 +01:00
Camilla Berglund
1f622adf0a Replaced inline declarations with glext.h use. 2010-11-17 16:06:15 +01:00
Camilla Berglund
4044c2da66 Made callbacks library global. 2010-10-24 18:28:55 +02:00
Camilla Berglund
99ddce3214 Added context sharing. 2010-10-04 18:17:53 +02:00
Camilla Berglund
e244ad3d41 Updated example and test programs to new API. 2010-09-14 03:10:59 +02:00
Camilla Berglund
39a966d136 Oh, right, this is C. 2010-09-14 02:22:52 +02:00
Camilla Berglund
abaac3ea99 Added GLFW error strings to test programs, various tweaks. 2010-09-11 14:32:05 +02:00
Camilla Berglund
484a2714fc Renamed GLFW_WINDOW to GLFW_WINDOWED. 2010-09-10 13:24:19 +02:00
Camilla Berglund
cfbafc5b39 Renamed glfw.h to glfw3.h to avoid conflicts. 2010-09-10 13:16:03 +02:00
Camilla Berglund
950a3beda2 Moved bits parameters from glfwOpenWindow to glfwOpenWindowHint. 2010-09-09 19:58:51 +02:00
Camilla Berglund
b0ce8006e3 Updated some examples and tests to new API. 2010-09-09 19:18:18 +02:00
Camilla Berglund
c5af4c4324 Removed legacy GLFWCALL. 2010-09-08 04:15:36 +02:00
Camilla Berglund
3249f812d6 Initial import of 2.7 Lite. 2010-09-07 17:34:51 +02:00