/*************************************************************************** file : ssggraph.cpp created : Thu Aug 17 23:19:19 CEST 2000 copyright : (C) 2000 by Eric Espie email : torcs@free.fr version : $Id: ssggraph.cpp,v 1.12 2005/02/01 19:08:19 berniw 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. * * * ***************************************************************************/ #ifdef WIN32 #include #endif #include #include #include "grmain.h" #ifdef DMALLOC #include "dmalloc.h" #endif static int graphInit(int /* idx */, void *pt) { tGraphicItf *itf = (tGraphicItf*)pt; itf->inittrack = initTrack; itf->initcars = initCars; itf->initview = initView; itf->refresh = refresh; itf->shutdowncars = shutdownCars; itf->shutdowntrack = shutdownTrack; //itf->bendcar = bendCar; return 0; } /* * Function * ssggraph * * Description * module entry point * * Parameters * * * Return * */ extern "C" int ssggraph(tModInfo *modInfo) { modInfo->name = "ssggraph"; /* name of the module (short) */ modInfo->desc = "The Graphic Library using PLIB ssg"; /* description of the module (can be long) */ modInfo->fctInit = graphInit; /* init function */ modInfo->gfId = 1; /* v 1 */ return 0; }