|
|
@ -36,7 +36,7 @@ |
|
|
|
// module (all other modules reference global variables as 'extern')
|
|
|
|
// module (all other modules reference global variables as 'extern')
|
|
|
|
//========================================================================
|
|
|
|
//========================================================================
|
|
|
|
|
|
|
|
|
|
|
|
#if defined( _init_c_ ) |
|
|
|
#if defined(_init_c_) |
|
|
|
#define GLFWGLOBAL |
|
|
|
#define GLFWGLOBAL |
|
|
|
#else |
|
|
|
#else |
|
|
|
#define GLFWGLOBAL extern |
|
|
|
#define GLFWGLOBAL extern |
|
|
@ -131,7 +131,7 @@ typedef struct { |
|
|
|
//========================================================================
|
|
|
|
//========================================================================
|
|
|
|
|
|
|
|
|
|
|
|
// Flag indicating if GLFW has been initialized
|
|
|
|
// Flag indicating if GLFW has been initialized
|
|
|
|
#if defined( _init_c_ ) |
|
|
|
#if defined(_init_c_) |
|
|
|
int _glfwInitialized = 0; |
|
|
|
int _glfwInitialized = 0; |
|
|
|
#else |
|
|
|
#else |
|
|
|
GLFWGLOBAL int _glfwInitialized; |
|
|
|
GLFWGLOBAL int _glfwInitialized; |
|
|
@ -143,46 +143,46 @@ GLFWGLOBAL int _glfwInitialized; |
|
|
|
//========================================================================
|
|
|
|
//========================================================================
|
|
|
|
|
|
|
|
|
|
|
|
// Init/terminate
|
|
|
|
// Init/terminate
|
|
|
|
int _glfwPlatformInit( void ); |
|
|
|
int _glfwPlatformInit(void); |
|
|
|
int _glfwPlatformTerminate( void ); |
|
|
|
int _glfwPlatformTerminate(void); |
|
|
|
|
|
|
|
|
|
|
|
// Enable/Disable
|
|
|
|
// Enable/Disable
|
|
|
|
void _glfwPlatformEnableSystemKeys( void ); |
|
|
|
void _glfwPlatformEnableSystemKeys(void); |
|
|
|
void _glfwPlatformDisableSystemKeys( void ); |
|
|
|
void _glfwPlatformDisableSystemKeys(void); |
|
|
|
|
|
|
|
|
|
|
|
// Fullscreen
|
|
|
|
// Fullscreen
|
|
|
|
int _glfwPlatformGetVideoModes( GLFWvidmode *list, int maxcount ); |
|
|
|
int _glfwPlatformGetVideoModes(GLFWvidmode* list, int maxcount); |
|
|
|
void _glfwPlatformGetDesktopMode( GLFWvidmode *mode ); |
|
|
|
void _glfwPlatformGetDesktopMode(GLFWvidmode* mode); |
|
|
|
|
|
|
|
|
|
|
|
// OpenGL extensions
|
|
|
|
// OpenGL extensions
|
|
|
|
int _glfwPlatformExtensionSupported( const char *extension ); |
|
|
|
int _glfwPlatformExtensionSupported(const char* extension); |
|
|
|
void * _glfwPlatformGetProcAddress( const char *procname ); |
|
|
|
void* _glfwPlatformGetProcAddress(const char* procname); |
|
|
|
|
|
|
|
|
|
|
|
// Joystick
|
|
|
|
// Joystick
|
|
|
|
int _glfwPlatformGetJoystickParam( int joy, int param ); |
|
|
|
int _glfwPlatformGetJoystickParam(int joy, int param); |
|
|
|
int _glfwPlatformGetJoystickPos( int joy, float *pos, int numaxes ); |
|
|
|
int _glfwPlatformGetJoystickPos(int joy, float* pos, int numaxes); |
|
|
|
int _glfwPlatformGetJoystickButtons( int joy, unsigned char *buttons, int numbuttons ); |
|
|
|
int _glfwPlatformGetJoystickButtons(int joy, unsigned char* buttons, int numbuttons); |
|
|
|
|
|
|
|
|
|
|
|
// Time
|
|
|
|
// Time
|
|
|
|
double _glfwPlatformGetTime( void ); |
|
|
|
double _glfwPlatformGetTime(void); |
|
|
|
void _glfwPlatformSetTime( double time ); |
|
|
|
void _glfwPlatformSetTime(double time); |
|
|
|
|
|
|
|
|
|
|
|
// Window management
|
|
|
|
// Window management
|
|
|
|
int _glfwPlatformOpenWindow( int width, int height, const _GLFWwndconfig *wndconfig, const _GLFWfbconfig *fbconfig ); |
|
|
|
int _glfwPlatformOpenWindow(int width, int height, const _GLFWwndconfig* wndconfig, const _GLFWfbconfig* fbconfig); |
|
|
|
void _glfwPlatformCloseWindow( void ); |
|
|
|
void _glfwPlatformCloseWindow(void); |
|
|
|
void _glfwPlatformSetWindowTitle( const char *title ); |
|
|
|
void _glfwPlatformSetWindowTitle(const char* title); |
|
|
|
void _glfwPlatformSetWindowSize( int width, int height ); |
|
|
|
void _glfwPlatformSetWindowSize(int width, int height); |
|
|
|
void _glfwPlatformSetWindowPos( int x, int y ); |
|
|
|
void _glfwPlatformSetWindowPos(int x, int y); |
|
|
|
void _glfwPlatformIconifyWindow( void ); |
|
|
|
void _glfwPlatformIconifyWindow(void); |
|
|
|
void _glfwPlatformRestoreWindow( void ); |
|
|
|
void _glfwPlatformRestoreWindow(void); |
|
|
|
void _glfwPlatformSwapBuffers( void ); |
|
|
|
void _glfwPlatformSwapBuffers(void); |
|
|
|
void _glfwPlatformSwapInterval( int interval ); |
|
|
|
void _glfwPlatformSwapInterval(int interval); |
|
|
|
void _glfwPlatformRefreshWindowParams( void ); |
|
|
|
void _glfwPlatformRefreshWindowParams(void); |
|
|
|
void _glfwPlatformPollEvents( void ); |
|
|
|
void _glfwPlatformPollEvents(void); |
|
|
|
void _glfwPlatformWaitEvents( void ); |
|
|
|
void _glfwPlatformWaitEvents(void); |
|
|
|
void _glfwPlatformHideMouseCursor( void ); |
|
|
|
void _glfwPlatformHideMouseCursor(void); |
|
|
|
void _glfwPlatformShowMouseCursor( void ); |
|
|
|
void _glfwPlatformShowMouseCursor(void); |
|
|
|
void _glfwPlatformSetMouseCursorPos( int x, int y ); |
|
|
|
void _glfwPlatformSetMouseCursorPos(int x, int y); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//========================================================================
|
|
|
|
//========================================================================
|
|
|
@ -190,23 +190,23 @@ void _glfwPlatformSetMouseCursorPos( int x, int y ); |
|
|
|
//========================================================================
|
|
|
|
//========================================================================
|
|
|
|
|
|
|
|
|
|
|
|
// Window management (window.c)
|
|
|
|
// Window management (window.c)
|
|
|
|
void _glfwClearWindowHints( void ); |
|
|
|
void _glfwClearWindowHints(void); |
|
|
|
|
|
|
|
|
|
|
|
// Input handling (window.c)
|
|
|
|
// Input handling (window.c)
|
|
|
|
void _glfwClearInput( void ); |
|
|
|
void _glfwClearInput(void); |
|
|
|
void _glfwInputDeactivation( void ); |
|
|
|
void _glfwInputDeactivation(void); |
|
|
|
void _glfwInputKey( int key, int action ); |
|
|
|
void _glfwInputKey(int key, int action); |
|
|
|
void _glfwInputChar( int character, int action ); |
|
|
|
void _glfwInputChar(int character, int action); |
|
|
|
void _glfwInputMouseClick( int button, int action ); |
|
|
|
void _glfwInputMouseClick(int button, int action); |
|
|
|
|
|
|
|
|
|
|
|
// OpenGL extensions (glext.c)
|
|
|
|
// OpenGL extensions (glext.c)
|
|
|
|
void _glfwParseGLVersion( int *major, int *minor, int *rev ); |
|
|
|
void _glfwParseGLVersion(int* major, int* minor, int* rev); |
|
|
|
int _glfwStringInExtensionString( const char *string, const GLubyte *extensions ); |
|
|
|
int _glfwStringInExtensionString(const char* string, const GLubyte* extensions); |
|
|
|
|
|
|
|
|
|
|
|
// Framebuffer configs
|
|
|
|
// Framebuffer configs
|
|
|
|
const _GLFWfbconfig *_glfwChooseFBConfig( const _GLFWfbconfig *desired, |
|
|
|
const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, |
|
|
|
const _GLFWfbconfig *alternatives, |
|
|
|
const _GLFWfbconfig* alternatives, |
|
|
|
unsigned int count ); |
|
|
|
unsigned int count); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _internal_h_
|
|
|
|
#endif // _internal_h_
|
|
|
|