From 0046b210e24e0ce6ae9f2d4fe31c38453921b297 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 24 Apr 2013 23:47:08 +0200 Subject: [PATCH] Merged hints into library struct. --- src/internal.h | 61 +++++++++++++++++++++----------------------------- 1 file changed, 26 insertions(+), 35 deletions(-) diff --git a/src/internal.h b/src/internal.h index 28fd37f2..9e91613f 100644 --- a/src/internal.h +++ b/src/internal.h @@ -125,40 +125,6 @@ typedef struct _GLFWmonitor _GLFWmonitor; // Internal types //======================================================================== -/*! @brief Window, framebuffer and context hints. - * - * It is used only by shared code and only to store parameters passed to us by - * @ref glfwWindowHint for use by @ref glfwCreateWindow. - */ -struct _GLFWhints -{ - int redBits; - int greenBits; - int blueBits; - int alphaBits; - int depthBits; - int stencilBits; - int accumRedBits; - int accumGreenBits; - int accumBlueBits; - int accumAlphaBits; - int auxBuffers; - GLboolean stereo; - GLboolean resizable; - GLboolean visible; - GLboolean decorated; - int samples; - GLboolean sRGB; - int clientAPI; - int glMajor; - int glMinor; - GLboolean glForward; - GLboolean glDebug; - int glProfile; - int glRobustness; -}; - - /*! @brief Window and context configuration. * * Parameters relating to the creation of the context and window but not @@ -289,7 +255,32 @@ struct _GLFWmonitor */ struct _GLFWlibrary { - _GLFWhints hints; + struct { + int redBits; + int greenBits; + int blueBits; + int alphaBits; + int depthBits; + int stencilBits; + int accumRedBits; + int accumGreenBits; + int accumBlueBits; + int accumAlphaBits; + int auxBuffers; + GLboolean stereo; + GLboolean resizable; + GLboolean visible; + GLboolean decorated; + int samples; + GLboolean sRGB; + int clientAPI; + int glMajor; + int glMinor; + GLboolean glForward; + GLboolean glDebug; + int glProfile; + int glRobustness; + } hints; double cursorPosX, cursorPosY;