TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
trackitf.cpp
Go to the documentation of this file.
1/***************************************************************************
2
3 file : trackitf.cpp
4 created : Sun Jan 30 22:57:50 CET 2000
5 copyright : (C) 2000 by Eric Espie
6 email : torcs@free.fr
7 version : $Id$
8
9 ***************************************************************************/
10
11/***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 * *
18 ***************************************************************************/
19
20
21#include <stdlib.h>
22#include <tgf.h>
23#include <track.h>
24#include "trackinc.h"
25
26#ifdef _WIN32
27BOOL WINAPI DllEntryPoint (HINSTANCE hDLL, DWORD dwReason, LPVOID Reserved)
28{
29 return TRUE;
30}
31#endif
32
33/*
34 * Function
35 * trackInit
36 *
37 * Description
38 * init the menus
39 *
40 * Parameters
41 *
42 *
43 * Return
44 *
45 *
46 * Remarks
47 *
48 */
49static int
50trackInit(int /* index */, void *pt)
51{
52 tTrackItf *ptf = (tTrackItf*)pt;
53
63
64 return 0;
65}
66
67
68/*
69 * Function
70 * trackv1
71 *
72 * Description
73 *
74 *
75 * Parameters
76 *
77 *
78 * Return
79 *
80 *
81 * Remarks
82 *
83 */
84extern "C" int
85track(tModInfo *modInfo)
86{
87 modInfo->name = strdup("trackv1"); /* name of the module (short) */
88 modInfo->desc = strdup("Track V1.0"); /* description of the module (can be long) */
89 modInfo->fctInit = trackInit; /* init function */
90 modInfo->gfId = TRK_IDENT; /* always loaded */
91 modInfo->index = 0;
92
93 return 0;
94}
95
96
97
char * desc
description of the module (can be long)
Definition tgf.h:189
int index
index if multiple interface in one dll
Definition tgf.h:192
unsigned int gfId
supported framework version
Definition tgf.h:191
char * name
name of the module (short) (NULL if no module)
Definition tgf.h:188
tfModPrivInit fctInit
init function
Definition tgf.h:190
Interface Structure for Track Loader.
Definition track.h:634
tfTrackBuild trkBuild
build track structure for simu
Definition track.h:635
tfTrackSurfaceNormal trkSurfaceNormal
Definition track.h:642
tfTrackShutdown trkShutdown
Definition track.h:643
tfTrackHeightL trkHeightL
Definition track.h:638
tfTrackHeightG trkHeightG
Definition track.h:637
tfTrackSideNormal trkSideNormal
Definition track.h:641
tfTrackBuild trkBuildEx
build with graphic extensions (used by trackgen tool)
Definition track.h:636
tfTrackGlobal2Local trkGlobal2Local
Definition track.h:639
tfTrackLocal2Global trkLocal2Global
Definition track.h:640
struct ModInfo tModInfo
Module information structure.
tTrack * TrackBuildEx(char *trackfile)
Definition track.cpp:73
tTrack * TrackBuildv1(char *trackfile)
Definition track.cpp:43
void TrackShutdown(void)
Definition track.cpp:207
#define TRK_IDENT
Definition track.h:39
void TrackSurfaceNormal(tTrkLocPos *p, t3Dd *norm)
Definition trackutil.cpp:73
void TrackLocal2Global(tTrkLocPos *p, tdble *X, tdble *Y)
Definition trackutil.cpp:29
tdble TrackHeightL(tTrkLocPos *p)
Definition trackutil.cpp:55
void TrackSideNormal(tTrackSeg *, tdble, tdble, int, t3Dd *)
Definition trackutil.cpp:67
tdble TrackHeightG(tTrackSeg *seg, tdble x, tdble y)
Definition trackutil.cpp:61
void TrackGlobal2Local(tTrackSeg *segment, tdble X, tdble Y, tTrkLocPos *p, int sides)
Definition trackutil.cpp:36
int track(tModInfo *modInfo)
Definition trackitf.cpp:85
static int trackInit(int, void *pt)
Definition trackitf.cpp:50