/*************************************************************************** file : util.h created : Wed May 29 22:20:44 CEST 2002 copyright : (C) 2001 by Eric Espié email : Eric.Espie@torcs.org version : $Id: util.h,v 1.3 2003/09/01 06:28:44 torcs Exp $ ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ /** @file @author Eric Espie @version $Id: util.h,v 1.3 2003/09/01 06:28:44 torcs Exp $ */ #ifndef _UTIL_H_ #define _UTIL_H_ #include extern int GetFilename(char *filename, char *filepath, char *buf); extern float getHOT(ssgRoot *root, float x, float y); /* Use the texture name to select options like mipmap */ class ssgLoaderOptionsEx : public ssgLoaderOptions { public: ssgLoaderOptionsEx() : ssgLoaderOptions() {} virtual void makeModelPath ( char* path, const char *fname ) const { ulFindFile ( path, model_dir, fname, NULL ) ; } virtual void makeTexturePath ( char* path, const char *fname ) const { ulFindFile ( path, texture_dir, fname, NULL ) ; } }; #endif /* _UTIL_H_ */