[TuxKart-devel] CYGWIN FIXES
Status: Alpha
Brought to you by:
sjbaker
|
From: Norman V. <nh...@ca...> - 2000-07-03 04:00:29
|
Hi All
Two minor changes to get CYGWIN working with CVS files
-see below-
Also were the images and sound files commited to CVS
as binary files ?
If not they should be recomitted with the -b flag.
I had to use the ones from the tarball as the CVS
versions appeared to be corrupted on Win32.
I know --
the text - binary file distinction is a Windows feature
that programers working on real operating systems
should not have to concern themselves with :-)
Cheers
Norman
1) start_tux.h
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#ifdef WIN32
+ #ifdef __CYGWIN__
+ #include <unistd.h>
+ #endif
#include <windows.h>
#else
#include <unistd.h>
#endif
2) gfx.cxx -- initWindow(int w, int h)
void initWindow ( int w, int h )
{
/*
Already done in start_tuxkart
int fake_argc = 1 ;
char *fake_argv[3] ;
for ( int i = 0 ; i < 512 ; i++ )
keyIsDown [ i ] = FALSE ;
fake_argv[0] = "Tux Kart" ;
fake_argv[1] = "Tux Kart by Steve Baker." ;
fake_argv[2] = NULL ;
glutInitWindowPosition ( 0, 0 ) ;
glutInitWindowSize ( w, h ) ;
glutInit ( &fake_argc, fake_argv ) ;
glutInitDisplayMode ( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH ) ;
glutCreateWindow ( fake_argv[1] ) ;
*/
glutDisplayFunc ( tuxKartMainLoop ) ;
glutKeyboardFunc ( getGLUTKeystroke ) ;
glutSpecialFunc ( getGLUTSpecialKeystroke ) ;
glutKeyboardUpFunc ( getGLUTUpKeystroke ) ;
glutSpecialUpFunc ( getGLUTUpSpecialKeystroke ) ;
glutReshapeFunc ( reshape ) ;
glutIdleFunc ( glutPostRedisplay ) ;
}
|