inline double getFriction() const { return _friction; }
inline const char *getFrictionString() const { return _friction_string; }
inline const char *getComment() const { return _comment; }
- inline const bool getWindShear() const { return _wind_shear; }
+ inline bool getWindShear() const { return _wind_shear; }
inline const SGMetarVisibility& getMinVisibility() const { return _min_visibility; }
inline const SGMetarVisibility& getMaxVisibility() const { return _max_visibility; }
inline const char *getData() const { return _data; }
inline const char *getUnusedData() const { return _m; }
- inline const bool getProxy() const { return _x_proxy; }
+ inline bool getProxy() const { return _x_proxy; }
inline const char *getId() const { return _icao; }
inline int getYear() const { return _year; }
inline int getMonth() const { return _month; }
return (_max[0] - _min[0])*(_max[1] - _min[1])*(_max[2] - _min[2]);
}
- const bool empty() const
+ bool empty() const
{ return !valid(); }
bool valid() const
* Structure to hold MT algorithm state to easily allow independant
* sets of random numbers with different seeds.
*/
-struct {unsigned int array[MT_N]; int index; } typedef mt;
+typedef struct {unsigned int array[MT_N]; int index; } mt;
/**
* Initialize a new MT state with a given seed.
{
GLint matrixMode;
GLint tileWidth, tileHeight, border;
- GLdouble left, right, bottom, top;
+// GLdouble left, right, bottom, top;
if (!tr)
return;
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
+ // OSGFIXME
/* compute projection parameters */
+ /*
left = tr->Left + (tr->Right - tr->Left)
* (tr->CurrentColumn * tr->TileWidthNB - border) / tr->ImageWidth;
right = left + (tr->Right - tr->Left) * tileWidth / tr->ImageWidth;
* (tr->CurrentRow * tr->TileHeightNB - border) / tr->ImageHeight;
top = bottom + (tr->Top - tr->Bottom) * tileHeight / tr->ImageHeight;
- // OSGFIXME
-// ssgSetFrustum ( left, right, bottom, top, tr->Near, tr->Far );
+ ssgSetFrustum ( left, right, bottom, top, tr->Near, tr->Far );
+ */
/* restore user's matrix mode */
glMatrixMode( (GLenum)matrixMode );
}
}
-const XML_LChar *XML_ErrorString(int code)
+const XML_LChar *XML_ErrorString(size_t code)
{
static const XML_LChar *message[] = {
0,
XML_ParserFree(XML_Parser parser);
/* Returns a string describing the error. */
-const XML_LChar XMLPARSEAPI *XML_ErrorString(int code);
+const XML_LChar XMLPARSEAPI *XML_ErrorString(size_t code);
#ifdef __cplusplus
}