Modifications from John Fay
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@126 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
48e8da9920
commit
6cc5d428c0
@ -106,10 +106,12 @@ void advance_in_time ( double time_step, double position[3], double new_position
|
||||
|
||||
/* GLUT callbacks */
|
||||
|
||||
#define INPUT_LINE_LENGTH 80
|
||||
|
||||
void key_cb ( unsigned char key, int x, int y )
|
||||
{
|
||||
int i ;
|
||||
char inputline [ 80 ] ;
|
||||
char inputline [ INPUT_LINE_LENGTH ] ;
|
||||
|
||||
switch ( key )
|
||||
{
|
||||
@ -137,15 +139,15 @@ void key_cb ( unsigned char key, int x, int y )
|
||||
|
||||
case 'm' : case 'M' : /* Modify the Lorenz parameters */
|
||||
printf ( "Please enter new value for <sigma> (default %lf, currently %lf): ", s0, sigma ) ;
|
||||
fgets ( inputline, 79, stdin ) ;
|
||||
fgets ( inputline, INPUT_LINE_LENGTH-1, stdin ) ;
|
||||
sscanf ( inputline, "%lf", &sigma ) ;
|
||||
|
||||
printf ( "Please enter new value for <b> (default %lf, currently %lf): ", b0, b ) ;
|
||||
fgets ( inputline, 79, stdin ) ;
|
||||
fgets ( inputline, INPUT_LINE_LENGTH-1, stdin ) ;
|
||||
sscanf ( inputline, "%lf", &b ) ;
|
||||
|
||||
printf ( "Please enter new value for <r> (default %lf, currently %lf): ", r0, r ) ;
|
||||
fgets ( inputline, 79, stdin ) ;
|
||||
fgets ( inputline, INPUT_LINE_LENGTH-1, stdin ) ;
|
||||
sscanf ( inputline, "%lf", &r ) ;
|
||||
|
||||
break ;
|
||||
@ -205,7 +207,10 @@ void mouse_cb ( int button, int updown, int x, int y )
|
||||
if ( updown == GLUT_DOWN )
|
||||
{
|
||||
double dist = 1.0e20 ; /* A very large number */
|
||||
(void) dist; /* what's this all about? */
|
||||
dist = 0.0 ; /* so we don't get "unused variable" compiler warning */
|
||||
/* The idea here is that we go into "pick" mode and pick the nearest point
|
||||
to the mouse click position. Unfortunately I don't have the time to implement
|
||||
it at the moment. */
|
||||
}
|
||||
}
|
||||
|
||||
@ -312,7 +317,6 @@ int main ( int argc, char *argv[] )
|
||||
srand ( 1023 ) ;
|
||||
|
||||
/* Set up the OpenGL parameters */
|
||||
/* glDrawBuffer ( GL_BACK ) ;*/
|
||||
glEnable ( GL_DEPTH_TEST ) ;
|
||||
glClearColor ( 0.0, 0.0, 0.0, 0.0 ) ;
|
||||
glClearDepth ( 1.0 ) ;
|
||||
@ -339,6 +343,6 @@ int main ( int argc, char *argv[] )
|
||||
/* Enter the GLUT main loop */
|
||||
glutMainLoop () ;
|
||||
|
||||
return 0;
|
||||
return 0 ;
|
||||
}
|
||||
|
||||
|
@ -39,9 +39,10 @@ RSC=rc.exe
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "C:\OpenGL\freeglut\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D "FREEGLUT_STATIC" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
@ -49,7 +50,7 @@ BSC32=bscmake.exe
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /libpath:"../../../ReleaseStatic"
|
||||
|
||||
!ELSEIF "$(CFG)" == "lorenz - Win32 Debug"
|
||||
|
||||
@ -73,7 +74,7 @@ BSC32=bscmake.exe
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"C:\OpenGL\freeglut\freeglut_static___Win32_Debug"
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"../../../DebugStatic"
|
||||
|
||||
!ENDIF
|
||||
|
||||
|
Reference in New Issue
Block a user