|
@@ -1016,6 +1016,9 @@ extern "C" {
|
|
|
|
|
|
#define GLFW_COCOA_CHDIR_RESOURCES 0x00051001
|
|
#define GLFW_COCOA_CHDIR_RESOURCES 0x00051001
|
|
#define GLFW_COCOA_MENUBAR 0x00051002
|
|
#define GLFW_COCOA_MENUBAR 0x00051002
|
|
|
|
+
|
|
|
|
+#define GLFW_X11_WM_CLASS_NAME 0x00052001
|
|
|
|
+#define GLFW_X11_WM_CLASS_CLASS 0x00052002
|
|
/*! @} */
|
|
/*! @} */
|
|
|
|
|
|
#define GLFW_DONT_CARE -1
|
|
#define GLFW_DONT_CARE -1
|
|
@@ -1609,17 +1612,18 @@ GLFWAPI void glfwTerminate(void);
|
|
|
|
|
|
/*! @brief Sets the specified init hint to the desired value.
|
|
/*! @brief Sets the specified init hint to the desired value.
|
|
*
|
|
*
|
|
- * This function sets hints for the next initialization of GLFW.
|
|
|
|
|
|
+ * This function sets hints for the next initialization of GLFW. Only integer
|
|
|
|
+ * type hints can be set with this function.
|
|
*
|
|
*
|
|
- * The values you set are not affected by initialization or termination, but
|
|
|
|
- * they are only read during initialization. Once GLFW has been initialized,
|
|
|
|
- * setting new hint values will not affect behavior until the next time the
|
|
|
|
- * library is terminated and initialized.
|
|
|
|
|
|
+ * The values you set hints to are never reset by GLFW, but they only take
|
|
|
|
+ * effect during initialization. Once GLFW has been initialized, any values
|
|
|
|
+ * you set will be ignored until the library is terminated and initialized
|
|
|
|
+ * again.
|
|
*
|
|
*
|
|
- * Some hints are platform specific. These are always valid to set on any
|
|
|
|
- * platform but they will only affect their specific platform. Other platforms
|
|
|
|
- * will simply ignore them. Setting these hints requires no platform specific
|
|
|
|
- * headers or calls.
|
|
|
|
|
|
+ * Some hints are platform specific. These may be set on any platform but they
|
|
|
|
+ * will only affect their specific platform. Other platforms will simply
|
|
|
|
+ * ignore them. Setting these hints requires no platform specific headers or
|
|
|
|
+ * functions.
|
|
*
|
|
*
|
|
* @param[in] hint The [init hint](@ref init_hints) to set.
|
|
* @param[in] hint The [init hint](@ref init_hints) to set.
|
|
* @param[in] value The new value of the init hint.
|
|
* @param[in] value The new value of the init hint.
|
|
@@ -1633,6 +1637,7 @@ GLFWAPI void glfwTerminate(void);
|
|
*
|
|
*
|
|
* @sa init_hints
|
|
* @sa init_hints
|
|
* @sa glfwInit
|
|
* @sa glfwInit
|
|
|
|
+ * @sa glfwInitHintString
|
|
*
|
|
*
|
|
* @since Added in version 3.3.
|
|
* @since Added in version 3.3.
|
|
*
|
|
*
|
|
@@ -1640,6 +1645,41 @@ GLFWAPI void glfwTerminate(void);
|
|
*/
|
|
*/
|
|
GLFWAPI void glfwInitHint(int hint, int value);
|
|
GLFWAPI void glfwInitHint(int hint, int value);
|
|
|
|
|
|
|
|
+/*! @brief Sets the specified init hint to the desired value.
|
|
|
|
+ *
|
|
|
|
+ * This function sets hints for the next initialization of GLFW. Only string
|
|
|
|
+ * type hints can be set with this function.
|
|
|
|
+ *
|
|
|
|
+ * The values you set hints to are never reset by GLFW, but they only take
|
|
|
|
+ * effect during initialization. Once GLFW has been initialized, any values
|
|
|
|
+ * you set will be ignored until the library is terminated and initialized
|
|
|
|
+ * again.
|
|
|
|
+ *
|
|
|
|
+ * Some hints are platform specific. These may be set on any platform but they
|
|
|
|
+ * will only affect their specific platform. Other platforms will simply
|
|
|
|
+ * ignore them. Setting these hints requires no platform specific headers or
|
|
|
|
+ * functions.
|
|
|
|
+ *
|
|
|
|
+ * @param[in] hint The [init hint](@ref init_hints) to set.
|
|
|
|
+ * @param[in] value The new value of the init hint.
|
|
|
|
+ *
|
|
|
|
+ * @errors Possible errors include @ref GLFW_INVALID_ENUM and @ref
|
|
|
|
+ * GLFW_INVALID_VALUE.
|
|
|
|
+ *
|
|
|
|
+ * @remarks This function may be called before @ref glfwInit.
|
|
|
|
+ *
|
|
|
|
+ * @thread_safety This function must only be called from the main thread.
|
|
|
|
+ *
|
|
|
|
+ * @sa init_hints
|
|
|
|
+ * @sa glfwInit
|
|
|
|
+ * @sa glfwInitHint
|
|
|
|
+ *
|
|
|
|
+ * @since Added in version 3.3.
|
|
|
|
+ *
|
|
|
|
+ * @ingroup init
|
|
|
|
+ */
|
|
|
|
+GLFWAPI void glfwInitHintString(int hint, const char* value);
|
|
|
|
+
|
|
/*! @brief Retrieves the version of the GLFW library.
|
|
/*! @brief Retrieves the version of the GLFW library.
|
|
*
|
|
*
|
|
* This function retrieves the major, minor and revision numbers of the GLFW
|
|
* This function retrieves the major, minor and revision numbers of the GLFW
|
|
@@ -2261,6 +2301,11 @@ GLFWAPI void glfwWindowHint(int hint, int value);
|
|
* query the final size, position or other attributes directly after window
|
|
* query the final size, position or other attributes directly after window
|
|
* creation.
|
|
* creation.
|
|
*
|
|
*
|
|
|
|
+ * @remark @x11 The name and class of the `WM_CLASS` window property will by
|
|
|
|
+ * default be set to the window title passed to this function. Set the @ref
|
|
|
|
+ * GLFW_X11_WM_CLASS_NAME and @ref GLFW_X11_WM_CLASS_CLASS init hints before
|
|
|
|
+ * initialization to override this.
|
|
|
|
+ *
|
|
* @remark @wayland The window frame is currently unimplemented, as if
|
|
* @remark @wayland The window frame is currently unimplemented, as if
|
|
* [GLFW_DECORATED](@ref GLFW_DECORATED_hint) was always set to `GLFW_FALSE`.
|
|
* [GLFW_DECORATED](@ref GLFW_DECORATED_hint) was always set to `GLFW_FALSE`.
|
|
* A compositor can still emit close, resize or maximize events, using for
|
|
* A compositor can still emit close, resize or maximize events, using for
|