Buckets:
| /************************************************************************ | |
| * GLFW - An OpenGL framework | |
| * API version: 2.7 | |
| * WWW: http://www.glfw.org/ | |
| *------------------------------------------------------------------------ | |
| * Copyright (c) 2002-2006 Marcus Geelnard | |
| * Copyright (c) 2006-2010 Camilla Berglund | |
| * | |
| * This software is provided 'as-is', without any express or implied | |
| * warranty. In no event will the authors be held liable for any damages | |
| * arising from the use of this software. | |
| * | |
| * Permission is granted to anyone to use this software for any purpose, | |
| * including commercial applications, and to alter it and redistribute it | |
| * freely, subject to the following restrictions: | |
| * | |
| * 1. The origin of this software must not be misrepresented; you must not | |
| * claim that you wrote the original software. If you use this software | |
| * in a product, an acknowledgment in the product documentation would | |
| * be appreciated but is not required. | |
| * | |
| * 2. Altered source versions must be plainly marked as such, and must not | |
| * be misrepresented as being the original software. | |
| * | |
| * 3. This notice may not be removed or altered from any source | |
| * distribution. | |
| * | |
| *************************************************************************/ | |
| extern "C" { | |
| /************************************************************************* | |
| * Global definitions | |
| *************************************************************************/ | |
| /* We need a NULL pointer from time to time */ | |
| /* ------------------- BEGIN SYSTEM/COMPILER SPECIFIC -------------------- */ | |
| /* Please report any probles that you find with your compiler, which may | |
| * be solved in this section! There are several compilers that I have not | |
| * been able to test this file with yet. | |
| * | |
| * First: If we are we on Windows, we want a single define for it (_WIN32) | |
| * (Note: For Cygwin the compiler flag -mwin32 should be used, but to | |
| * make sure that things run smoothly for Cygwin users, we add __CYGWIN__ | |
| * to the list of "valid Win32 identifiers", which removes the need for | |
| * -mwin32) | |
| */ | |
| /* In order for extension support to be portable, we need to define an | |
| * OpenGL function call method. We use the keyword APIENTRY, which is | |
| * defined for Win32. (Note: Windows also needs this for <GL/gl.h>) | |
| */ | |
| /* The following three defines are here solely to make some Windows-based | |
| * <GL/gl.h> files happy. Theoretically we could include <windows.h>, but | |
| * it has the major drawback of severely polluting our namespace. | |
| */ | |
| /* Under Windows, we need WINGDIAPI defined */ | |
| /* Microsoft Visual C++, Borland C++ Builder and Pelles C */ | |
| /* LCC-Win32 */ | |
| /* Others (e.g. MinGW, Cygwin) */ | |
| /* Some <GL/glu.h> files also need CALLBACK defined */ | |
| /* Microsoft Visual C++ */ | |
| /* Other Windows compilers */ | |
| /* Microsoft Visual C++, Borland C++ and Pelles C <GL*glu.h> needs wchar_t */ | |
| typedef unsigned short wchar_t; | |
| /* ---------------- GLFW related system specific defines ----------------- */ | |
| /* We are building a Win32 DLL */ | |
| /* We are calling a Win32 DLL */ | |
| /* We are either building/calling a static lib or we are non-win32 */ | |
| /* -------------------- END SYSTEM/COMPILER SPECIFIC --------------------- */ | |
| /* Include standard OpenGL headers: GLFW uses GL_FALSE/GL_TRUE, and it is | |
| * convenient for the user to only have to include <GL/glfw.h>. This also | |
| * solves the problem with Windows <GL/gl.h> and <GL/glu.h> needing some | |
| * special defines which normally requires the user to include <windows.h> | |
| * (which is not a nice solution for portable programs). | |
| */ | |
| /************************************************************************* | |
| * GLFW version | |
| *************************************************************************/ | |
| /************************************************************************* | |
| * Input handling definitions | |
| *************************************************************************/ | |
| /* Key and button state/action definitions */ | |
| /* Keyboard key definitions: 8-bit ISO-8859-1 (Latin 1) encoding is used | |
| * for printable keys (such as A-Z, 0-9 etc), and values above 256 | |
| * represent special (non-printable) keys (e.g. F1, Page Up etc). | |
| */ | |
| /* Mouse button definitions */ | |
| /* Mouse button aliases */ | |
| /* Joystick identifiers */ | |
| /************************************************************************* | |
| * Other definitions | |
| *************************************************************************/ | |
| /* glfwOpenWindow modes */ | |
| /* glfwGetWindowParam tokens */ | |
| /* The following constants are used for both glfwGetWindowParam | |
| * and glfwOpenWindowHint | |
| */ | |
| /* GLFW_OPENGL_PROFILE tokens */ | |
| /* glfwEnable/glfwDisable tokens */ | |
| /* glfwWaitThread wait modes */ | |
| /* glfwGetJoystickParam tokens */ | |
| /* glfwReadImage/glfwLoadTexture2D flags */ | |
| /* Time spans longer than this (seconds) are considered to be infinity */ | |
| /************************************************************************* | |
| * Typedefs | |
| *************************************************************************/ | |
| /* The video mode structure used by glfwGetVideoModes() */ | |
| typedef struct { | |
| int Width, Height; | |
| int RedBits, BlueBits, GreenBits; | |
| } GLFWvidmode; | |
| /* Image/texture information */ | |
| typedef struct { | |
| int Width, Height; | |
| int Format; | |
| int BytesPerPixel; | |
| unsigned char *Data; | |
| } GLFWimage; | |
| /* Thread ID */ | |
| typedef int GLFWthread; | |
| /* Mutex object */ | |
| typedef void * GLFWmutex; | |
| /* Condition variable object */ | |
| typedef void * GLFWcond; | |
| /* Function pointer types */ | |
| typedef void (GLFWCALL * GLFWwindowsizefun)(int,int); | |
| typedef int (GLFWCALL * GLFWwindowclosefun)(void); | |
| typedef void (GLFWCALL * GLFWwindowrefreshfun)(void); | |
| typedef void (GLFWCALL * GLFWmousebuttonfun)(int,int); | |
| typedef void (GLFWCALL * GLFWmouseposfun)(int,int); | |
| typedef void (GLFWCALL * GLFWmousewheelfun)(int); | |
| typedef void (GLFWCALL * GLFWkeyfun)(int,int); | |
| typedef void (GLFWCALL * GLFWcharfun)(int,int); | |
| typedef void (GLFWCALL * GLFWthreadfun)(void *); | |
| /************************************************************************* | |
| * Prototypes | |
| *************************************************************************/ | |
| // Redirect GLFW2 symbols when they have different signatures under GLFW3. | |
| // This avoids the problem of JS symbols having different signatures in | |
| // different configurations. | |
| /* GLFW initialization, termination and version querying */ | |
| GLFWAPI int GLFWAPIENTRY glfwInit( void ); | |
| GLFWAPI void GLFWAPIENTRY glfwTerminate( void ); | |
| GLFWAPI void GLFWAPIENTRY glfwGetVersion( int *major, int *minor, int *rev ); | |
| /* Window handling */ | |
| GLFWAPI int GLFWAPIENTRY glfwOpenWindow( int width, int height, int redbits, int greenbits, int bluebits, int alphabits, int depthbits, int stencilbits, int mode ); | |
| GLFWAPI void GLFWAPIENTRY glfwOpenWindowHint( int target, int hint ); | |
| GLFWAPI void GLFWAPIENTRY glfwCloseWindow( void ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetWindowTitle( const char *title ); | |
| GLFWAPI void GLFWAPIENTRY glfwGetWindowSize( int *width, int *height ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetWindowSize( int width, int height ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetWindowPos( int x, int y ); | |
| GLFWAPI void GLFWAPIENTRY glfwIconifyWindow( void ); | |
| GLFWAPI void GLFWAPIENTRY glfwRestoreWindow( void ); | |
| GLFWAPI void GLFWAPIENTRY glfwSwapBuffers( void ); | |
| GLFWAPI void GLFWAPIENTRY glfwSwapInterval( int interval ); | |
| GLFWAPI int GLFWAPIENTRY glfwGetWindowParam( int param ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetWindowSizeCallback( GLFWwindowsizefun cbfun ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetWindowCloseCallback( GLFWwindowclosefun cbfun ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetWindowRefreshCallback( GLFWwindowrefreshfun cbfun ); | |
| /* Video mode functions */ | |
| GLFWAPI int GLFWAPIENTRY glfwGetVideoModes( GLFWvidmode *list, int maxcount ); | |
| GLFWAPI void GLFWAPIENTRY glfwGetDesktopMode( GLFWvidmode *mode ); | |
| /* Input handling */ | |
| GLFWAPI void GLFWAPIENTRY glfwPollEvents( void ); | |
| GLFWAPI void GLFWAPIENTRY glfwWaitEvents( void ); | |
| GLFWAPI int GLFWAPIENTRY glfwGetKey( int key ); | |
| GLFWAPI int GLFWAPIENTRY glfwGetMouseButton( int button ); | |
| GLFWAPI void GLFWAPIENTRY glfwGetMousePos( int *xpos, int *ypos ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetMousePos( int xpos, int ypos ); | |
| GLFWAPI int GLFWAPIENTRY glfwGetMouseWheel( void ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetMouseWheel( int pos ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetKeyCallback( GLFWkeyfun cbfun ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetCharCallback( GLFWcharfun cbfun ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetMouseButtonCallback( GLFWmousebuttonfun cbfun ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetMousePosCallback( GLFWmouseposfun cbfun ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetMouseWheelCallback( GLFWmousewheelfun cbfun ); | |
| /* Joystick input */ | |
| GLFWAPI int GLFWAPIENTRY glfwGetJoystickParam( int joy, int param ); | |
| GLFWAPI int GLFWAPIENTRY glfwGetJoystickPos( int joy, float *pos, int numaxes ); | |
| GLFWAPI int GLFWAPIENTRY glfwGetJoystickButtons( int joy, unsigned char *buttons, int numbuttons ); | |
| /* Time */ | |
| GLFWAPI double GLFWAPIENTRY glfwGetTime( void ); | |
| GLFWAPI void GLFWAPIENTRY glfwSetTime( double time ); | |
| GLFWAPI void GLFWAPIENTRY glfwSleep( double time ); | |
| /* Extension support */ | |
| GLFWAPI int GLFWAPIENTRY glfwExtensionSupported( const char *extension ); | |
| GLFWAPI void* GLFWAPIENTRY glfwGetProcAddress( const char *procname ); | |
| GLFWAPI void GLFWAPIENTRY glfwGetGLVersion( int *major, int *minor, int *rev ); | |
| /* Threading support */ | |
| GLFWAPI GLFWthread GLFWAPIENTRY glfwCreateThread( GLFWthreadfun fun, void *arg ); | |
| GLFWAPI void GLFWAPIENTRY glfwDestroyThread( GLFWthread ID ); | |
| GLFWAPI int GLFWAPIENTRY glfwWaitThread( GLFWthread ID, int waitmode ); | |
| GLFWAPI GLFWthread GLFWAPIENTRY glfwGetThreadID( void ); | |
| GLFWAPI GLFWmutex GLFWAPIENTRY glfwCreateMutex( void ); | |
| GLFWAPI void GLFWAPIENTRY glfwDestroyMutex( GLFWmutex mutex ); | |
| GLFWAPI void GLFWAPIENTRY glfwLockMutex( GLFWmutex mutex ); | |
| GLFWAPI void GLFWAPIENTRY glfwUnlockMutex( GLFWmutex mutex ); | |
| GLFWAPI GLFWcond GLFWAPIENTRY glfwCreateCond( void ); | |
| GLFWAPI void GLFWAPIENTRY glfwDestroyCond( GLFWcond cond ); | |
| GLFWAPI void GLFWAPIENTRY glfwWaitCond( GLFWcond cond, GLFWmutex mutex, double timeout ); | |
| GLFWAPI void GLFWAPIENTRY glfwSignalCond( GLFWcond cond ); | |
| GLFWAPI void GLFWAPIENTRY glfwBroadcastCond( GLFWcond cond ); | |
| GLFWAPI int GLFWAPIENTRY glfwGetNumberOfProcessors( void ); | |
| /* Enable/disable functions */ | |
| GLFWAPI void GLFWAPIENTRY glfwEnable( int token ); | |
| GLFWAPI void GLFWAPIENTRY glfwDisable( int token ); | |
| /* Image/texture I/O support */ | |
| GLFWAPI int GLFWAPIENTRY glfwReadImage( const char *name, GLFWimage *img, int flags ); | |
| GLFWAPI int GLFWAPIENTRY glfwReadMemoryImage( const void *data, long size, GLFWimage *img, int flags ); | |
| GLFWAPI void GLFWAPIENTRY glfwFreeImage( GLFWimage *img ); | |
| GLFWAPI int GLFWAPIENTRY glfwLoadTexture2D( const char *name, int flags ); | |
| GLFWAPI int GLFWAPIENTRY glfwLoadMemoryTexture2D( const void *data, long size, int flags ); | |
| GLFWAPI int GLFWAPIENTRY glfwLoadTextureImage2D( GLFWimage *img, int flags ); | |
| } | |
Xet Storage Details
- Size:
- 20.9 kB
- Xet hash:
- 5d61022c86ca88494dcca2c8812e91499bbb8fecfdc902269ac553dfcc10586a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.