Declared all window close callbacks as static.
This commit is contained in:
parent
2972cdfeb1
commit
6b46225e33
@ -43,7 +43,6 @@
|
|||||||
void init( void );
|
void init( void );
|
||||||
void display( void );
|
void display( void );
|
||||||
void reshape( GLFWwindow window, int w, int h );
|
void reshape( GLFWwindow window, int w, int h );
|
||||||
int window_close_callback(GLFWwindow window);
|
|
||||||
void DrawBoingBall( void );
|
void DrawBoingBall( void );
|
||||||
void BounceBall( double dt );
|
void BounceBall( double dt );
|
||||||
void DrawBoingBallBand( GLfloat long_lo, GLfloat long_hi );
|
void DrawBoingBallBand( GLfloat long_lo, GLfloat long_hi );
|
||||||
@ -250,7 +249,7 @@ void reshape( GLFWwindow window, int w, int h )
|
|||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* Window close callback
|
* Window close callback
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
int window_close_callback(GLFWwindow window)
|
static int window_close_callback(GLFWwindow window)
|
||||||
{
|
{
|
||||||
running = GL_FALSE;
|
running = GL_FALSE;
|
||||||
return GL_TRUE;
|
return GL_TRUE;
|
||||||
|
@ -268,7 +268,7 @@ void reshape( GLFWwindow window, int width, int height )
|
|||||||
|
|
||||||
|
|
||||||
/* close callback */
|
/* close callback */
|
||||||
int window_close_callback(GLFWwindow window)
|
static int window_close_callback(GLFWwindow window)
|
||||||
{
|
{
|
||||||
running = 0;
|
running = 0;
|
||||||
return GL_TRUE;
|
return GL_TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user