Classes | Macros | Typedefs | Functions | Variables
internal.h File Reference
#include "../include/GLFW/glfw3.h"
Include dependency graph for internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _GLFWctxconfig
 Context configuration. More...
 
struct  _GLFWcursor
 Cursor structure. More...
 
struct  _GLFWfbconfig
 Framebuffer configuration. More...
 
struct  _GLFWlibrary
 Library global data. More...
 
struct  _GLFWmonitor
 Monitor structure. More...
 
struct  _GLFWwindow
 Window and context structure. More...
 
struct  _GLFWwndconfig
 Window configuration. More...
 

Macros

#define _GLFW_REQUIRE_INIT()
 
#define _GLFW_REQUIRE_INIT_OR_RETURN(x)
 
#define _GLFW_SWAP_POINTERS(x, y)
 
#define _GLFW_VERSION_NUMBER   "3.1.2"
 
#define GL_GLEXT_LEGACY
 

Typedefs

typedef struct _GLFWctxconfig _GLFWctxconfig
 
typedef struct _GLFWcursor _GLFWcursor
 
typedef struct _GLFWfbconfig _GLFWfbconfig
 
typedef struct _GLFWlibrary _GLFWlibrary
 
typedef struct _GLFWmonitor _GLFWmonitor
 
typedef struct _GLFWwindow _GLFWwindow
 
typedef struct _GLFWwndconfig _GLFWwndconfig
 
typedef void(APIENTRYPFNGLCLEARPROC) (GLbitfield)
 
typedef void(APIENTRYPFNGLGETINTEGERVPROC) (GLenum, GLint *)
 
typedef const GLubyte *(APIENTRYPFNGLGETSTRINGPROC) (GLenum)
 

Functions

void _glfwAllocGammaArrays (GLFWgammaramp *ramp, unsigned int size)
 
_GLFWmonitor_glfwAllocMonitor (const char *name, int widthMM, int heightMM)
 Allocates and returns a monitor object with the specified name and dimensions. More...
 
const _GLFWfbconfig_glfwChooseFBConfig (const _GLFWfbconfig *desired, const _GLFWfbconfig *alternatives, unsigned int count)
 Chooses the framebuffer config that best matches the desired one. More...
 
const GLFWvidmode_glfwChooseVideoMode (_GLFWmonitor *monitor, const GLFWvidmode *desired)
 
int _glfwCompareVideoModes (const GLFWvidmode *first, const GLFWvidmode *second)
 Performs lexical comparison between two GLFWvidmode structures. More...
 
void _glfwFreeGammaArrays (GLFWgammaramp *ramp)
 
void _glfwFreeMonitor (_GLFWmonitor *monitor)
 Frees a monitor object and any data associated with it. More...
 
void _glfwFreeMonitors (_GLFWmonitor **monitors, int count)
 
void _glfwInputChar (_GLFWwindow *window, unsigned int codepoint, int mods, int plain)
 Notifies shared code of a Unicode character input event. More...
 
void _glfwInputCursorEnter (_GLFWwindow *window, int entered)
 Notifies shared code of a cursor enter/leave event. More...
 
void _glfwInputCursorMotion (_GLFWwindow *window, double x, double y)
 Notifies shared code of a cursor motion event. More...
 
void _glfwInputDrop (_GLFWwindow *window, int count, const char **names)
 Notifies dropped object over window. More...
 
void _glfwInputError (int error, const char *format,...)
 Notifies shared code of an error. More...
 
void _glfwInputFramebufferSize (_GLFWwindow *window, int width, int height)
 Notifies shared code of a framebuffer resize event. More...
 
void _glfwInputKey (_GLFWwindow *window, int key, int scancode, int action, int mods)
 Notifies shared code of a physical key event. More...
 
void _glfwInputMonitorChange (void)
 
void _glfwInputMouseClick (_GLFWwindow *window, int button, int action, int mods)
 Notifies shared code of a mouse button click event. More...
 
void _glfwInputScroll (_GLFWwindow *window, double x, double y)
 Notifies shared code of a scroll event. More...
 
void _glfwInputWindowCloseRequest (_GLFWwindow *window)
 Notifies shared code of a window close request event. More...
 
void _glfwInputWindowDamage (_GLFWwindow *window)
 Notifies shared code of a window damage event. More...
 
void _glfwInputWindowFocus (_GLFWwindow *window, GLboolean focused)
 Notifies shared code of a window focus event. More...
 
void _glfwInputWindowIconify (_GLFWwindow *window, int iconified)
 Notifies shared code of a window iconification event. More...
 
void _glfwInputWindowPos (_GLFWwindow *window, int xpos, int ypos)
 Notifies shared code of a window movement event. More...
 
void _glfwInputWindowSize (_GLFWwindow *window, int width, int height)
 Notifies shared code of a window resize event. More...
 
GLboolean _glfwIsValidContext (const _GLFWctxconfig *ctxconfig)
 Checks whether the current context fulfils the specified hard constraints. More...
 
GLboolean _glfwIsValidContextConfig (const _GLFWctxconfig *ctxconfig)
 Checks whether the desired context attributes are valid. More...
 
void _glfwPlatformApplyCursorMode (_GLFWwindow *window)
 Applies the cursor mode of the specified window to the system. More...
 
int _glfwPlatformCreateCursor (_GLFWcursor *cursor, const GLFWimage *image, int xhot, int yhot)
 Creates a custom cursor. More...
 
int _glfwPlatformCreateStandardCursor (_GLFWcursor *cursor, int shape)
 Creates a cursor with a standard shape. More...
 
int _glfwPlatformCreateWindow (_GLFWwindow *window, const _GLFWwndconfig *wndconfig, const _GLFWctxconfig *ctxconfig, const _GLFWfbconfig *fbconfig)
 
void _glfwPlatformDestroyCursor (_GLFWcursor *cursor)
 Destroys a cursor. More...
 
void _glfwPlatformDestroyWindow (_GLFWwindow *window)
 
int _glfwPlatformExtensionSupported (const char *extension)
 Returns whether the specified extension is available. More...
 
const char * _glfwPlatformGetClipboardString (_GLFWwindow *window)
 Returns the contents of the clipboard as a string. More...
 
_GLFWwindow_glfwPlatformGetCurrentContext (void)
 Returns the window whose context is current on the calling thread. More...
 
void _glfwPlatformGetCursorPos (_GLFWwindow *window, double *xpos, double *ypos)
 Retrieves the position of the cursor relative to the client area of the window. More...
 
void _glfwPlatformGetFramebufferSize (_GLFWwindow *window, int *width, int *height)
 Retrieves the size of the framebuffer of the specified window. More...
 
void _glfwPlatformGetGammaRamp (_GLFWmonitor *monitor, GLFWgammaramp *ramp)
 Returns the current gamma ramp for the specified monitor. More...
 
const float * _glfwPlatformGetJoystickAxes (int joy, int *count)
 Returns the values of all axes of the specified joystick. More...
 
const unsigned char * _glfwPlatformGetJoystickButtons (int joy, int *count)
 Returns the state of all buttons of the specified joystick. More...
 
const char * _glfwPlatformGetJoystickName (int joy)
 Returns the name of the specified joystick. More...
 
void _glfwPlatformGetMonitorPos (_GLFWmonitor *monitor, int *xpos, int *ypos)
 Returns the position of the monitor's viewport on the virtual screen. More...
 
_GLFWmonitor ** _glfwPlatformGetMonitors (int *count)
 Returns the currently connected monitors. More...
 
GLFWglproc _glfwPlatformGetProcAddress (const char *procname)
 Returns the address of the specified function for the current context. More...
 
double _glfwPlatformGetTime (void)
 Returns the value of the GLFW timer. More...
 
const char * _glfwPlatformGetVersionString (void)
 Returns a string describing the compile-time configuration. More...
 
void _glfwPlatformGetVideoMode (_GLFWmonitor *monitor, GLFWvidmode *mode)
 
GLFWvidmode_glfwPlatformGetVideoModes (_GLFWmonitor *monitor, int *count)
 Returns the available video modes for the specified monitor. More...
 
void _glfwPlatformGetWindowFrameSize (_GLFWwindow *window, int *left, int *top, int *right, int *bottom)
 Retrieves the size of the frame of the window. More...
 
void _glfwPlatformGetWindowPos (_GLFWwindow *window, int *xpos, int *ypos)
 Retrieves the position of the client area of the specified window. More...
 
void _glfwPlatformGetWindowSize (_GLFWwindow *window, int *width, int *height)
 Retrieves the size of the client area of the specified window. More...
 
void _glfwPlatformHideWindow (_GLFWwindow *window)
 Hides the specified window. More...
 
void _glfwPlatformIconifyWindow (_GLFWwindow *window)
 Iconifies the specified window. More...
 
int _glfwPlatformInit (void)
 Initializes the platform-specific part of the library. More...
 
GLboolean _glfwPlatformIsSameMonitor (_GLFWmonitor *first, _GLFWmonitor *second)
 Checks whether two monitor objects represent the same monitor. More...
 
int _glfwPlatformJoystickPresent (int joy)
 Returns whether the specified joystick is present. More...
 
void _glfwPlatformMakeContextCurrent (_GLFWwindow *window)
 Makes the context of the specified window current for the calling thread. More...
 
void _glfwPlatformPollEvents (void)
 Processes all pending events. More...
 
void _glfwPlatformPostEmptyEvent (void)
 Posts an empty event to the event queue. More...
 
void _glfwPlatformRestoreWindow (_GLFWwindow *window)
 Restores the specified window. More...
 
void _glfwPlatformSetClipboardString (_GLFWwindow *window, const char *string)
 Sets the clipboard to the specified string. More...
 
void _glfwPlatformSetCursor (_GLFWwindow *window, _GLFWcursor *cursor)
 Sets the cursor for the window. More...
 
void _glfwPlatformSetCursorPos (_GLFWwindow *window, double xpos, double ypos)
 Sets the position of the cursor, relative to the client area of the window. More...
 
void _glfwPlatformSetGammaRamp (_GLFWmonitor *monitor, const GLFWgammaramp *ramp)
 Sets the current gamma ramp for the specified monitor. More...
 
void _glfwPlatformSetTime (double time)
 Sets the GLFW timer. More...
 
void _glfwPlatformSetWindowPos (_GLFWwindow *window, int xpos, int ypos)
 Sets the position of the client area of the specified window. More...
 
void _glfwPlatformSetWindowSize (_GLFWwindow *window, int width, int height)
 Sets the size of the client area of the specified window. More...
 
void _glfwPlatformSetWindowTitle (_GLFWwindow *window, const char *title)
 Sets the title of the specified window. More...
 
void _glfwPlatformShowWindow (_GLFWwindow *window)
 Makes the specified window visible. More...
 
void _glfwPlatformSwapBuffers (_GLFWwindow *window)
 Swaps the front and back buffers of the specified window. More...
 
void _glfwPlatformSwapInterval (int interval)
 Sets the swap interval for the current context. More...
 
void _glfwPlatformTerminate (void)
 Terminates the platform-specific part of the library. More...
 
void _glfwPlatformUnhideWindow (_GLFWwindow *window)
 
void _glfwPlatformWaitEvents (void)
 Waits until events are queued and processes them. More...
 
int _glfwPlatformWindowFocused (_GLFWwindow *window)
 Returns whether the window is focused. More...
 
int _glfwPlatformWindowIconified (_GLFWwindow *window)
 Returns whether the window is iconified. More...
 
int _glfwPlatformWindowVisible (_GLFWwindow *window)
 Returns whether the window is visible. More...
 
GLboolean _glfwRefreshContextAttribs (const _GLFWctxconfig *ctxconfig)
 Retrieves the attributes of the current context. More...
 
void _glfwSplitBPP (int bpp, int *red, int *green, int *blue)
 Splits a color depth into red, green and blue bit depths. More...
 
int _glfwStringInExtensionString (const char *string, const char *extensions)
 Searches an extension string for the specified extension. More...
 

Variables

_GLFWlibrary _glfw
 All global data protected by _glfwInitialized. This should only be touched after a call to glfwInit that has not been followed by a call to glfwTerminate. More...
 
GLboolean _glfwInitialized
 Flag indicating whether GLFW has been successfully initialized. More...
 

Macro Definition Documentation

#define _GLFW_REQUIRE_INIT ( )
Value:
{ \
return; \
}
GLboolean _glfwInitialized
Flag indicating whether GLFW has been successfully initialized.
#define GLFW_NOT_INITIALIZED
GLFW has not been initialized.
Definition: glfw3.h:477
void _glfwInputError(int error, const char *format,...)
Notifies shared code of an error.

Definition at line 131 of file internal.h.

#define _GLFW_REQUIRE_INIT_OR_RETURN (   x)
Value:
{ \
return x; \
}
GLboolean _glfwInitialized
Flag indicating whether GLFW has been successfully initialized.
#define GLFW_NOT_INITIALIZED
GLFW has not been initialized.
Definition: glfw3.h:477
void _glfwInputError(int error, const char *format,...)
Notifies shared code of an error.
GLint GLint GLint GLint GLint x
Definition: glext.h:114

Definition at line 137 of file internal.h.

#define _GLFW_SWAP_POINTERS (   x,
  y 
)
Value:
{ \
t = x; \
x = y; \
y = t; \
}
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:114
GLdouble GLdouble t
Definition: glext.h:239
typedef void(APIENTRYP PFNGLDRAWRANGEELEMENTSPROC)(GLenum mode
GLint GLint GLint GLint GLint x
Definition: glext.h:114

Definition at line 145 of file internal.h.

#define _GLFW_VERSION_NUMBER   "3.1.2"

Definition at line 36 of file internal.h.

#define GL_GLEXT_LEGACY

Definition at line 61 of file internal.h.

Typedef Documentation

Definition at line 77 of file internal.h.

typedef struct _GLFWcursor _GLFWcursor

Definition at line 82 of file internal.h.

typedef struct _GLFWfbconfig _GLFWfbconfig

Definition at line 78 of file internal.h.

typedef struct _GLFWlibrary _GLFWlibrary

Definition at line 80 of file internal.h.

typedef struct _GLFWmonitor _GLFWmonitor

Definition at line 81 of file internal.h.

typedef struct _GLFWwindow _GLFWwindow

Definition at line 79 of file internal.h.

Definition at line 76 of file internal.h.

typedef void(APIENTRY * PFNGLCLEARPROC) (GLbitfield)

Definition at line 72 of file internal.h.

typedef void(APIENTRY * PFNGLGETINTEGERVPROC) (GLenum, GLint *)

Definition at line 74 of file internal.h.

typedef const GLubyte*(APIENTRY * PFNGLGETSTRINGPROC) (GLenum)

Definition at line 73 of file internal.h.

Function Documentation

void _glfwInputWindowDamage ( _GLFWwindow window)

Notifies shared code of a window damage event.

Parameters
[in]windowThe window that received the event.

Definition at line 97 of file window.c.

Variable Documentation

_GLFWlibrary _glfw

All global data protected by _glfwInitialized. This should only be touched after a call to glfwInit that has not been followed by a call to glfwTerminate.

Definition at line 43 of file examples/third_party/glfw/src/init.c.

GLboolean _glfwInitialized

Flag indicating whether GLFW has been successfully initialized.

Definition at line 42 of file examples/third_party/glfw/src/init.c.



librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Fri Mar 13 2020 03:16:18