| 225 | } |
| 226 | |
| 227 | void glfwDefaultWindowHints(void) |
| 228 | { |
| 229 | _GLFW_REQUIRE_INIT(); |
| 230 | |
| 231 | // The default is OpenGL with minimum version 1.0 |
| 232 | memset(&_glfw.hints.context, 0, sizeof(_glfw.hints.context)); |
| 233 | _glfw.hints.context.client = GLFW_OPENGL_API; |
| 234 | _glfw.hints.context.source = GLFW_NATIVE_CONTEXT_API; |
| 235 | _glfw.hints.context.major = 1; |
| 236 | _glfw.hints.context.minor = 0; |
| 237 | |
| 238 | // The default is a focused, visible, resizable window with decorations |
| 239 | memset(&_glfw.hints.window, 0, sizeof(_glfw.hints.window)); |
| 240 | _glfw.hints.window.resizable = GLFW_TRUE; |
| 241 | _glfw.hints.window.visible = GLFW_TRUE; |
| 242 | _glfw.hints.window.decorated = GLFW_TRUE; |
| 243 | _glfw.hints.window.focused = GLFW_TRUE; |
| 244 | _glfw.hints.window.autoIconify = GLFW_TRUE; |
| 245 | _glfw.hints.window.centerCursor = GLFW_TRUE; |
| 246 | _glfw.hints.window.focusOnShow = GLFW_TRUE; |
| 247 | |
| 248 | // The default is 24 bits of color, 24 bits of depth and 8 bits of stencil, |
| 249 | // double buffered |
| 250 | memset(&_glfw.hints.framebuffer, 0, sizeof(_glfw.hints.framebuffer)); |
| 251 | _glfw.hints.framebuffer.redBits = 8; |
| 252 | _glfw.hints.framebuffer.greenBits = 8; |
| 253 | _glfw.hints.framebuffer.blueBits = 8; |
| 254 | _glfw.hints.framebuffer.alphaBits = 8; |
| 255 | _glfw.hints.framebuffer.depthBits = 24; |
| 256 | _glfw.hints.framebuffer.stencilBits = 8; |
| 257 | _glfw.hints.framebuffer.doublebuffer = GLFW_TRUE; |
| 258 | |
| 259 | // The default is to select the highest available refresh rate |
| 260 | _glfw.hints.refreshRate = GLFW_DONT_CARE; |
| 261 | |
| 262 | // The default is to use full Retina resolution framebuffers |
| 263 | _glfw.hints.window.ns.retina = GLFW_TRUE; |
| 264 | } |
| 265 | |
| 266 | GLFWAPI void glfwWindowHint(int hint, int value) |
| 267 | { |