Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

definition.h

Go to the documentation of this file.
00001 /* 00002 Definition of some data type. 00003 This code is part of D.R.I.V.E. - Digraph Research inside Virtual Environment 00004 Copyright (C) 2003 by Saiani Alessandro <saiani.alessandro@libero.it> 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 00021 00025 #ifndef DRIVE_DEFS_H 00026 #define DRIVE_DEFS_H 1 00028 int windowhd; 00031 typedef enum 00032 { 00033 BOX,SPHERE,CYLINDER,CONE,FACE 00034 }type_object; 00035 00037 typedef struct Object_u{ 00038 GLfloat position[16]; 00039 type_object type; 00040 GLint level; 00041 GLfloat min[3]; 00042 GLfloat max[3]; 00043 GLfloat emissive[3]; 00044 GLfloat diffuse[3]; 00045 GLfloat* face; 00046 GLfloat vertex[8]; 00047 int nvertex; 00048 bool ccw; 00049 void* fields; 00050 }object_u; 00051 00053 typedef struct WU{ 00054 float x,y,z; 00055 float w,h,d; 00056 int level; 00057 }wu; 00058 00060 typedef struct LEVEL{ 00061 int id; 00062 float min; 00063 float max; 00064 }level; 00065 00067 typedef struct HOTSPOT{ 00068 float x,y,z; 00069 char* description; 00070 char* id; 00071 char** url; 00072 int url_length; 00073 int level; 00074 }hotspot; 00075 00077 typedef struct PATHNODE{ 00078 char* id; 00079 int x,z; 00080 int level; 00081 }pathnode; 00082 00084 typedef struct _point{ 00085 float x,y,z; 00086 }point; 00087 #endif 00088

SourceForge.net Logo

Generated on Mon Jun 14 17:25:56 2004 for D.R.I.V.E. by doxygen 1.3.7