Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
monitor.c File Reference
#include "internal.h"
#include <assert.h>
#include <math.h>
#include <float.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
+ Include dependency graph for monitor.c:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void _glfwInputMonitor (_GLFWmonitor *monitor, int action, int placement)
 
void _glfwInputMonitorWindow (_GLFWmonitor *monitor, _GLFWwindow *window)
 
_GLFWmonitor_glfwAllocMonitor (const char *name, int widthMM, int heightMM)
 
void _glfwFreeMonitor (_GLFWmonitor *monitor)
 
void _glfwAllocGammaArrays (GLFWgammaramp *ramp, unsigned int size)
 
void _glfwFreeGammaArrays (GLFWgammaramp *ramp)
 
const GLFWvidmode_glfwChooseVideoMode (_GLFWmonitor *monitor, const GLFWvidmode *desired)
 
int _glfwCompareVideoModes (const GLFWvidmode *fm, const GLFWvidmode *sm)
 
void _glfwSplitBPP (int bpp, int *red, int *green, int *blue)
 
GLFWAPI GLFWmonitor ** glfwGetMonitors (int *count)
 Returns the currently connected monitors. More...
 
GLFWAPI GLFWmonitorglfwGetPrimaryMonitor (void)
 Returns the primary monitor. More...
 
GLFWAPI void glfwGetMonitorPos (GLFWmonitor *handle, int *xpos, int *ypos)
 Returns the position of the monitor's viewport on the virtual screen. More...
 
GLFWAPI void glfwGetMonitorWorkarea (GLFWmonitor *handle, int *xpos, int *ypos, int *width, int *height)
 Retrieves the work area of the monitor. More...
 
GLFWAPI void glfwGetMonitorPhysicalSize (GLFWmonitor *handle, int *widthMM, int *heightMM)
 Returns the physical size of the monitor. More...
 
GLFWAPI void glfwGetMonitorContentScale (GLFWmonitor *handle, float *xscale, float *yscale)
 Retrieves the content scale for the specified monitor. More...
 
GLFWAPI const char * glfwGetMonitorName (GLFWmonitor *handle)
 Returns the name of the specified monitor. More...
 
GLFWAPI void glfwSetMonitorUserPointer (GLFWmonitor *handle, void *pointer)
 Sets the user pointer of the specified monitor. More...
 
GLFWAPI void * glfwGetMonitorUserPointer (GLFWmonitor *handle)
 Returns the user pointer of the specified monitor. More...
 
GLFWAPI GLFWmonitorfun glfwSetMonitorCallback (GLFWmonitorfun cbfun)
 Sets the monitor configuration callback. More...
 
GLFWAPI const GLFWvidmodeglfwGetVideoModes (GLFWmonitor *handle, int *count)
 Returns the available video modes for the specified monitor. More...
 
GLFWAPI const GLFWvidmodeglfwGetVideoMode (GLFWmonitor *handle)
 Returns the current mode of the specified monitor. More...
 
GLFWAPI void glfwSetGamma (GLFWmonitor *handle, float gamma)
 Generates a gamma ramp and sets it for the specified monitor. More...
 
GLFWAPI const GLFWgammarampglfwGetGammaRamp (GLFWmonitor *handle)
 Returns the current gamma ramp for the specified monitor. More...
 
GLFWAPI void glfwSetGammaRamp (GLFWmonitor *handle, const GLFWgammaramp *ramp)
 Sets the current gamma ramp for the specified monitor. More...
 

Function Documentation

◆ _glfwAllocGammaArrays()

void _glfwAllocGammaArrays ( GLFWgammaramp ramp,
unsigned int  size 
)

Definition at line 196 of file monitor.c.

+ Here is the caller graph for this function:

◆ _glfwAllocMonitor()

_GLFWmonitor * _glfwAllocMonitor ( const char *  name,
int  widthMM,
int  heightMM 
)

Definition at line 167 of file monitor.c.

+ Here is the caller graph for this function:

◆ _glfwChooseVideoMode()

const GLFWvidmode * _glfwChooseVideoMode ( _GLFWmonitor monitor,
const GLFWvidmode desired 
)

Definition at line 217 of file monitor.c.

+ Here is the caller graph for this function:

◆ _glfwCompareVideoModes()

int _glfwCompareVideoModes ( const GLFWvidmode fm,
const GLFWvidmode sm 
)

Definition at line 269 of file monitor.c.

+ Here is the caller graph for this function:

◆ _glfwFreeGammaArrays()

void _glfwFreeGammaArrays ( GLFWgammaramp ramp)

Definition at line 206 of file monitor.c.

+ Here is the caller graph for this function:

◆ _glfwFreeMonitor()

void _glfwFreeMonitor ( _GLFWmonitor monitor)

Definition at line 180 of file monitor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _glfwInputMonitor()

void _glfwInputMonitor ( _GLFWmonitor monitor,
int  action,
int  placement 
)

Definition at line 97 of file monitor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _glfwInputMonitorWindow()

void _glfwInputMonitorWindow ( _GLFWmonitor monitor,
_GLFWwindow window 
)

Definition at line 155 of file monitor.c.

◆ _glfwSplitBPP()

void _glfwSplitBPP ( int  bpp,
int *  red,
int *  green,
int *  blue 
)

Definition at line 276 of file monitor.c.

+ Here is the caller graph for this function: