mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Replaced display with monitor in monitor related api.
This commit is contained in:
+23
-23
@@ -539,36 +539,36 @@ GLFWAPI int glfwGetError(void);
|
||||
GLFWAPI const char* glfwErrorString(int error);
|
||||
GLFWAPI void glfwSetErrorCallback(GLFWerrorfun cbfun);
|
||||
|
||||
/* Display constants */
|
||||
#define GLFW_DISPLAY_INVALID_HANDLE (NULL)
|
||||
#define GLFW_DISPLAY_CONNECTED 0
|
||||
#define GLFW_DISPLAY_DISCONNECTED 1
|
||||
#define GLFW_DISPLAY_PARAM_S_NAME 0
|
||||
#define GLFW_DISPLAY_PARAM_I_PHYS_WIDTH 1
|
||||
#define GLFW_DISPLAY_PARAM_I_PHYS_HEIGHT 2
|
||||
#define GLFW_DISPLAY_PARAM_I_SCREEN_X_POS 3
|
||||
#define GLFW_DISPLAY_PARAM_I_SCREEN_Y_POS 4
|
||||
#define GLFW_DISPLAY_PARAM_S_NAME_LEN 30
|
||||
/* Monitor constants */
|
||||
#define GLFW_MONITOR_INVALID_HANDLE (NULL)
|
||||
#define GLFW_MONITOR_CONNECTED 0
|
||||
#define GLFW_MONITOR_DISCONNECTED 1
|
||||
#define GLFW_MONITOR_PARAM_S_NAME 0
|
||||
#define GLFW_MONITOR_PARAM_I_PHYS_WIDTH 1
|
||||
#define GLFW_MONITOR_PARAM_I_PHYS_HEIGHT 2
|
||||
#define GLFW_MONITOR_PARAM_I_SCREEN_X_POS 3
|
||||
#define GLFW_MONITOR_PARAM_I_SCREEN_Y_POS 4
|
||||
#define GLFW_MONITOR_PARAM_S_NAME_LEN 30
|
||||
|
||||
/* Display types */
|
||||
typedef struct _GLFWdisplay* GLFWdisplay;
|
||||
typedef void (* GLFWdisplaydevicefun)(GLFWdisplay,int); /* connect / disconnect */
|
||||
/* Monitor types */
|
||||
typedef struct _GLFWmonitor* GLFWmonitor;
|
||||
typedef void (* GLFWmonitordevicefun)(GLFWmonitor,int); /* connect / disconnect */
|
||||
|
||||
/* Display callback registration */
|
||||
GLFWAPI void glfwSetDisplayDeviceCallback(GLFWdisplaydevicefun cbfun);
|
||||
/* Monitor callback registration */
|
||||
GLFWAPI void glfwSetMonitorDeviceCallback(GLFWmonitordevicefun cbfun);
|
||||
|
||||
/* Display attributes */
|
||||
GLFWAPI void glfwSetDisplayUserPointer(GLFWdisplay display, void* pointer);
|
||||
GLFWAPI void* glfwGetDisplayUserPointer(GLFWdisplay display);
|
||||
GLFWAPI int glfwGetDisplayIntegerParam(GLFWdisplay display, int param);
|
||||
GLFWAPI const char* glfwGetDisplayStringParam(GLFWdisplay display, int param);
|
||||
/* Monitor attributes */
|
||||
GLFWAPI void glfwSetMonitorUserPointer(GLFWmonitor monitor, void* pointer);
|
||||
GLFWAPI void* glfwGetMonitorUserPointer(GLFWmonitor monitor);
|
||||
GLFWAPI int glfwGetMonitorIntegerParam(GLFWmonitor monitor, int param);
|
||||
GLFWAPI const char* glfwGetMonitorStringParam(GLFWmonitor monitor, int param);
|
||||
|
||||
/* Display discovery */
|
||||
GLFWAPI GLFWdisplay glfwGetNextDisplay(GLFWdisplay iterator);
|
||||
/* Monitor discovery */
|
||||
GLFWAPI GLFWmonitor glfwGetNextMonitor(GLFWmonitor iterator);
|
||||
|
||||
|
||||
/* Video mode functions */
|
||||
GLFWAPI int glfwGetVideoModes(GLFWdisplay display, GLFWvidmode* list, int maxcount);
|
||||
GLFWAPI int glfwGetVideoModes(GLFWmonitor monitor, GLFWvidmode* list, int maxcount);
|
||||
GLFWAPI void glfwGetDesktopMode(GLFWvidmode* mode);
|
||||
|
||||
/* Gamma ramp functions */
|
||||
|
||||
Reference in New Issue
Block a user