TORCS  1.3.9
The Open Racing Car Simulator
telemetry.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  file : telemetry.h
4  created : Sun Jan 30 22:59:54 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 #ifndef _TELEMETRY_H_
22 #define _TELEMETRY_H_
23 
24 #define TLM_IDENT 1
25 
26 #include <tgf.h>
27 
28 typedef void(*tftlmInit)(tdble /* ymin */, tdble /* ymax */);
29 typedef void(*tftlmNewChannel)(const char * /* name */, tdble * /* var */, tdble /* min */, tdble /* max */);
30 typedef void(*tftlmStartMonitoring)(const char * /* filename */);
31 typedef void(*tftlmStopMonitoring)(void);
32 typedef void(*tftlmUpdate)(double /* time */);
33 typedef void(*tftlmShutdown)(void);
34 
35 
36 typedef struct
37 {
38  tftlmInit init; /* Init the telemetry */
39  tftlmNewChannel newChannel; /* Create a new channel */
40  tftlmStartMonitoring startMonitoring; /* Start monitoring */
41  tftlmStopMonitoring stopMonitoring; /* Stop monitoring */
42  tftlmUpdate update; /* Update telemetry */
43  tftlmShutdown shutdown; /* close the telemetry */
44 } tTelemItf;
45 
46 
47 
48 #endif /* _TELEMETRY_H_ */
49 
50 
51 
tftlmShutdown shutdown
Definition: telemetry.h:43
tftlmInit init
Definition: telemetry.h:38
void(* tftlmShutdown)(void)
Definition: telemetry.h:33
void(* tftlmInit)(tdble, tdble)
Definition: telemetry.h:28
float tdble
Floating point type used in TORCS.
Definition: tgf.h:48
The Gaming Framework API.
tftlmUpdate update
Definition: telemetry.h:42
tftlmStopMonitoring stopMonitoring
Definition: telemetry.h:41
tftlmNewChannel newChannel
Definition: telemetry.h:39
tftlmStartMonitoring startMonitoring
Definition: telemetry.h:40
void(* tftlmUpdate)(double)
Definition: telemetry.h:32
void(* tftlmNewChannel)(const char *, tdble *, tdble, tdble)
Definition: telemetry.h:29
void(* tftlmStopMonitoring)(void)
Definition: telemetry.h:31
void(* tftlmStartMonitoring)(const char *)
Definition: telemetry.h:30