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:
parent
ab5ae52e7d
commit
1ecf81c25b
2 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@
|
|||
|
||||
// Constructor
|
||||
FGSuperPoly::FGSuperPoly() :
|
||||
flag( 0 )
|
||||
flag( "" )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue