]> git.mxchange.org Git - flightgear.git/blob - Scenery/mesh.h
Initial revision.
[flightgear.git] / Scenery / mesh.h
1 /**************************************************************************
2  * mesh.h -- data structures and routines for processing terrain meshes
3  *
4  * Written by Curtis Olson, started May 1997.
5  *
6  * $Id$
7  * (Log is kept at end of this file)
8  **************************************************************************/
9
10
11 #ifndef MESH_H
12 #define MESH_H
13
14
15 struct mesh {
16     /* start coordinates (in arc seconds) */
17     double originx, originy;
18
19     /* number of rows and columns */
20     int rows, cols;
21
22     /* Distance between row and column data points (in arc seconds) */
23     double row_step, col_step;
24
25     /* pointer to the actual mesh data dynamically allocated */
26     float *mesh_data;
27
28     /* a temporary values for the parser to use */
29     char option_name[32];
30     int cur_row, cur_col;
31 };
32
33
34 /* return a pointer to a new mesh structure (no data array allocated yet) */
35 struct mesh *(new_mesh)();
36
37 /* return a pointer to a dynamically allocated array */
38 float *(new_mesh_data)(int nrows, int ncols);
39
40 /* set the option name in the mesh data structure */
41 void mesh_set_option_name(struct mesh *m, char *name);
42
43 /* set an option value in the mesh data structure */
44 void mesh_set_option_value(struct mesh *m, char *value);
45
46 #endif MESH_H
47
48
49 /* $Log$
50 /* Revision 1.1  1997/05/16 16:07:05  curt
51 /* Initial revision.
52 /*
53  */