X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_glutfont_definitions.c;h=a87911837ba7947c7c2d44ebcd7c2d7abfc87b83;hb=462826abf234b449279c96c39235a5dabdab6243;hp=7cb34f8bbbc202ddf1dd6f2207a68648a1ae78c0;hpb=efa22aadb65f18bed1a5da18b27911498d0494bc;p=freeglut diff --git a/src/freeglut_glutfont_definitions.c b/src/freeglut_glutfont_definitions.c index 7cb34f8..a879118 100644 --- a/src/freeglut_glutfont_definitions.c +++ b/src/freeglut_glutfont_definitions.c @@ -3,9 +3,10 @@ * * Bitmap and stroke fonts displaying. * - * Copyright (c) 2003 Stephen J. Baker (whether he wants it or not). All Rights Reserved. - * Written by John F. Fay , who releases the copyright over to the - * "freeglut" project lead. + * Copyright (c) 2003 Stephen J. Baker (whether he wants it or not). + * All Rights Reserved. + * Written by John F. Fay , who releases the + * copyright over to the "freeglut" project lead. * Creation date: Mon July 21 2003 * * Permission is hereby granted, free of charge, to any person obtaining a @@ -27,24 +28,24 @@ */ /* - * This file is necessary for the *nix version of "freeglut" because the original GLUT - * defined its font variables in rather an unusual way. Publicly, in "glut.h", they were - * defined as "void *". Privately, in one of the source code files, they were defined as - * pointers to a structure. Most compilers and linkers are satisfied with the "void *" - * and don't go any farther, but some of them balked. In particular, when compiling with - * "freeglut" and then trying to run using the GLUT ".so" library, some of them would give - * an error. So we are having to create this file to define the variables as pointers - * to an unusual structure to match GLUT. + * This file is necessary for the *nix version of "freeglut" because the + * original GLUT defined its font variables in rather an unusual way. + * Publicly, in "glut.h", they were defined as "void *". Privately, + * in one of the source code files, they were defined as pointers to a + * structure. Most compilers and linkers are satisfied with the "void *" + * and don't go any farther, but some of them balked. In particular, + * when compiling with "freeglut" and then trying to run using the GLUT + * ".so" library, some of them would give an error. So we are having to + * create this file to define the variables as pointers to an unusual + * structure to match GLUT. */ #include "freeglut_internal.h" #if TARGET_HOST_UNIX_X11 -#define G_LOG_DOMAIN "freeglut-glutfont-definitions" - struct freeglutStrokeFont -{ +{ const char *name ; int num_chars ; void *ch ; @@ -61,16 +62,16 @@ struct freeglutBitmapFont } ; -struct freeglutStrokeFont *glutStrokeRoman ; -struct freeglutStrokeFont *glutStrokeMonoRoman ; +struct freeglutStrokeFont glutStrokeRoman ; +struct freeglutStrokeFont glutStrokeMonoRoman ; -struct freeglutBitmapFont *glutBitmap9By15 ; -struct freeglutBitmapFont *glutBitmap8By13 ; -struct freeglutBitmapFont *glutBitmapTimesRoman10 ; -struct freeglutBitmapFont *glutBitmapTimesRoman24 ; -struct freeglutBitmapFont *glutBitmapHelvetica10 ; -struct freeglutBitmapFont *glutBitmapHelvetica12 ; -struct freeglutBitmapFont *glutBitmapHelvetica18 ; +struct freeglutBitmapFont glutBitmap9By15 ; +struct freeglutBitmapFont glutBitmap8By13 ; +struct freeglutBitmapFont glutBitmapTimesRoman10 ; +struct freeglutBitmapFont glutBitmapTimesRoman24 ; +struct freeglutBitmapFont glutBitmapHelvetica10 ; +struct freeglutBitmapFont glutBitmapHelvetica12 ; +struct freeglutBitmapFont glutBitmapHelvetica18 ; #endif