1
0
Fork 0

Make the superpoly flag a string rather than an int so we can use it to

convey a wider range of information.
This commit is contained in:
curt 2002-11-09 16:40:20 +00:00
parent ab5ae52e7d
commit 1ecf81c25b
2 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@
// Constructor
FGSuperPoly::FGSuperPoly() :
flag( 0 )
flag( "" )
{
}

View file

@ -57,7 +57,7 @@ private:
FGPolygon texcoords; // corresponding texture coordinates
FGPolygon tris; // triangulation
GLenum tri_mode; // GL_TRIANGLE, GL_FAN, GL_TRISTRIP, etc.
int flag; // For various potential record keeping needs
string flag; // For various potential record keeping needs
public:
@ -83,8 +83,8 @@ public:
inline GLenum get_tri_mode() const { return tri_mode; }
inline void set_tri_mode( const GLenum &m ) { tri_mode = m; }
inline int get_flag() const { return flag; }
inline void set_flag( const int f ) { flag = f; }
inline string get_flag() const { return flag; }
inline void set_flag( const string f ) { flag = f; }
// erase the polygon
void erase();