Removal of all remaining TABs in the freeglut *.[ch] files. (I missed a
few in the "one" demo, it seems, and some more crept back into freeglut_(ext|font).c, presumably due to my own edits when I forgot to use the "freeglut-c-mode" in EMACS.) git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@339 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
4ccdcf6f4e
commit
b92f1915fe
@ -48,14 +48,14 @@
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
# if defined(FREEGLUT_EXPORTS)
|
# if defined(FREEGLUT_EXPORTS)
|
||||||
# define FGAPI __declspec(dllexport)
|
# define FGAPI __declspec(dllexport)
|
||||||
/* # define FGAPI */
|
/* # define FGAPI */
|
||||||
# else
|
# else
|
||||||
# define FGAPI __declspec(dllimport)
|
# define FGAPI __declspec(dllimport)
|
||||||
# pragma comment (lib, "freeglut.lib") /* link with Win32 freeglut lib */
|
# pragma comment (lib, "freeglut.lib") /* link with Win32 freeglut lib */
|
||||||
# endif
|
# endif
|
||||||
# define FGAPIENTRY __stdcall
|
# define FGAPIENTRY __stdcall
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -67,8 +67,8 @@
|
|||||||
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
# define FGAPI
|
# define FGAPI
|
||||||
# define FGAPIENTRY
|
# define FGAPIENTRY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -63,7 +63,7 @@ void PrintText( int nX, int nY, char* pszText )
|
|||||||
|
|
||||||
for( p=pszText, lines=0; *p; p++ )
|
for( p=pszText, lines=0; *p; p++ )
|
||||||
{
|
{
|
||||||
if( *p == '\n' )
|
if( *p == '\n' )
|
||||||
{
|
{
|
||||||
lines++;
|
lines++;
|
||||||
glRasterPos2i( nX, nY-(lines*18) );
|
glRasterPos2i( nX, nY-(lines*18) );
|
||||||
|
@ -185,8 +185,8 @@ void *FGAPIENTRY glutGetProcAddress( const char *procName )
|
|||||||
/* Try GLUT functions first */
|
/* Try GLUT functions first */
|
||||||
int i;
|
int i;
|
||||||
for( i = 0; glut_functions[ i ].name; i++ )
|
for( i = 0; glut_functions[ i ].name; i++ )
|
||||||
if( strcmp( glut_functions[ i ].name, procName ) == 0)
|
if( strcmp( glut_functions[ i ].name, procName ) == 0)
|
||||||
return glut_functions[ i ].address;
|
return glut_functions[ i ].address;
|
||||||
|
|
||||||
/* Try core GL functions */
|
/* Try core GL functions */
|
||||||
#if TARGET_HOST_WIN32
|
#if TARGET_HOST_WIN32
|
||||||
|
@ -120,10 +120,10 @@ void FGAPIENTRY glutBitmapCharacter( void* fontID, int character )
|
|||||||
glPixelStorei( GL_UNPACK_SKIP_PIXELS, 0 );
|
glPixelStorei( GL_UNPACK_SKIP_PIXELS, 0 );
|
||||||
glPixelStorei( GL_UNPACK_ALIGNMENT, 1 );
|
glPixelStorei( GL_UNPACK_ALIGNMENT, 1 );
|
||||||
glBitmap(
|
glBitmap(
|
||||||
face[ 0 ], font->Height, /* The bitmap's width and height */
|
face[ 0 ], font->Height, /* The bitmap's width and height */
|
||||||
font->xorig, font->yorig, /* The origin in the font glyph */
|
font->xorig, font->yorig, /* The origin in the font glyph */
|
||||||
( float )( face[ 0 ] ), 0.0, /* The raster advance -- inc. x,y */
|
( float )( face[ 0 ] ), 0.0, /* The raster advance -- inc. x,y */
|
||||||
( face + 1 ) /* The packed bitmap data... */
|
( face + 1 ) /* The packed bitmap data... */
|
||||||
);
|
);
|
||||||
glPopClientAttrib( );
|
glPopClientAttrib( );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user