-/**************************************************************************
- * panel.cxx -- routines to draw an instrument panel
- *
- * Written by Friedemann Reinhard, started June 1998.
- *
- * Copyright(C)1998 Friedemann Reinhard-reinhard@theorie2.physik.uni-erlangen.de
- *
- * 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.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * $Id$
- * (Log is kept at end of this file)
- **************************************************************************/
+// panel.cxx -- routines to draw an instrument panel
+//
+// Written by Friedemann Reinhard, started June 1998.
+//
+// Copyright(C)1998 Friedemann Reinhard-reinhard@theorie2.physik.uni-erlangen.de
+//
+// 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.
+//
+// This program is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+//
+// $Id$
+// (Log is kept at end of this file)
#ifdef HAVE_CONFIG_H
static double offset;
static float alpha;
-/* image.c THIS FILE WAS COPIED FROM THE MESA GRAPHICS LIBRARY */
+// image.c THIS FILE WAS COPIED FROM THE MESA GRAPHICS LIBRARY
static Image *ImageOpen(char *fileName)
}
}
- if ((image->type & 0xFF00) == 0x0100) /* RLE image */
+ if ((image->type & 0xFF00) == 0x0100) // RLE image
{
x = image->sizeY * image->sizeZ * sizeof(long);
image->rowStart = (unsigned long *)malloc(x);
unsigned char *iPtr, *oPtr, pixel;
int count;
- if ((image->type & 0xFF00) == 0x0100) /* RLE image */
+ if ((image->type & 0xFF00) == 0x0100) // RLE image
{
fseek(image->file, image->rowStart[y+z*image->sizeY], SEEK_SET);
fread(image->tmp[0], 1, (unsigned int)image->rowSize[y+z*image->sizeY],
}
}
}
- else /* verbatim image */
+ else // verbatim image
{
fseek(image->file, 512+(y*image->sizeX)+(z*image->sizeX*image->sizeY),
SEEK_SET);
return final;
}
-/* Beginning of the "panel-code" */
+// Beginning of the "panel-code"
void fgPanelInit ( void ) {
fgVIEW *v;
string tpath;
xglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
xglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
- /* load in the texture data */
+ // load in the texture data
xglPixelStorei(GL_UNPACK_ROW_LENGTH, 256);
tpath = current_options.get_fg_root() + "/Textures/gauges.rgb";
printf(" %f %f %f %f \n", mvmatrix[12], mvmatrix[13], mvmatrix[14], mvmatrix[15]);
}
-/* $Log$
-/* Revision 1.10 1998/11/09 23:38:52 curt
-/* Panel updates from Friedemann.
-/*
-/* Revision 1.9 1998/11/06 21:18:01 curt
-/* Converted to new logstream debugging facility. This allows release
-/* builds with no messages at all (and no performance impact) by using
-/* the -DFG_NDEBUG flag.
-/*
-/* Revision 1.8 1998/10/16 23:27:37 curt
-/* C++-ifying.
-/*
- * Revision 1.7 1998/08/31 20:45:31 curt
- * Tweaks from Friedemann.
- *
- * Revision 1.6 1998/08/28 18:14:40 curt
- * Added new cockpit code from Friedemann Reinhard
- * <mpt218@faupt212.physik.uni-erlangen.de>
- *
- * Revision 1.1 1998/06/27 16:47:54 curt
- * Incorporated Friedemann Reinhard's <mpt218@faupt212.physik.uni-erlangen.de>
- * first pass at an isntrument panel.
- *
- */
+// $Log$
+// Revision 1.11 1998/11/11 00:19:27 curt
+// Updated comment delimeter to C++ style.
+//
+// Revision 1.10 1998/11/09 23:38:52 curt
+// Panel updates from Friedemann.
+//
+// Revision 1.9 1998/11/06 21:18:01 curt
+// Converted to new logstream debugging facility. This allows release
+// builds with no messages at all (and no performance impact) by using
+// the -DFG_NDEBUG flag.
+//
+// Revision 1.8 1998/10/16 23:27:37 curt
+// C++-ifying.
+//
+// Revision 1.7 1998/08/31 20:45:31 curt
+// Tweaks from Friedemann.
+//
+// Revision 1.6 1998/08/28 18:14:40 curt
+// Added new cockpit code from Friedemann Reinhard
+// <mpt218@faupt212.physik.uni-erlangen.de>
+//
+// Revision 1.1 1998/06/27 16:47:54 curt
+// Incorporated Friedemann Reinhard's <mpt218@faupt212.physik.uni-erlangen.de>
+// first pass at an isntrument panel.
+//
+
-/**************************************************************************
- * panel.hxx -- instrument panel defines and prototypes
- *
- * Written by Friedemann Reinhard, started June 1998.
- *
- * 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.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * $Id$
- * (Log is kept at end of this file)
- **************************************************************************/
+// panel.hxx -- instrument panel defines and prototypes
+//
+// Written by Friedemann Reinhard, started June 1998.
+//
+// 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.
+//
+// This program is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+//
+// $Id$
+// (Log is kept at end of this file)
#ifndef _PANEL_HXX
extern int panel_hist;
-#endif /* _PANEL_HXX */
-
-
-/* $Log$
-/* Revision 1.3 1998/11/09 23:38:54 curt
-/* Panel updates from Friedemann.
-/*
- * Revision 1.2 1998/08/28 18:14:41 curt
- * Added new cockpit code from Friedemann Reinhard
- * <mpt218@faupt212.physik.uni-erlangen.de>
- *
- * Revision 1.1 1998/06/27 16:47:55 curt
- * Incorporated Friedemann Reinhard's <mpt218@faupt212.physik.uni-erlangen.de>
- * first pass at an isntrument panel.
- *
- */
+#endif // _PANEL_HXX
+
+
+// $Log$
+// Revision 1.4 1998/11/11 00:19:29 curt
+// Updated comment delimeter to C++ style.
+//
+// Revision 1.3 1998/11/09 23:38:54 curt
+// Panel updates from Friedemann.
+//
+// Revision 1.2 1998/08/28 18:14:41 curt
+// Added new cockpit code from Friedemann Reinhard
+// <mpt218@faupt212.physik.uni-erlangen.de>
+//
+// Revision 1.1 1998/06/27 16:47:55 curt
+// Incorporated Friedemann Reinhard's <mpt218@faupt212.physik.uni-erlangen.de>
+// first pass at an isntrument panel.
+
+