Added a general purpose int field for various uses. Currently used to
differentiate between runway and taxiway polygons so we can handle their texturing needs differently.
This commit is contained in:
parent
a812248191
commit
5023d2e581
2 changed files with 7 additions and 1 deletions
|
@ -25,7 +25,9 @@
|
|||
|
||||
|
||||
// Constructor
|
||||
FGSuperPoly::FGSuperPoly() {
|
||||
FGSuperPoly::FGSuperPoly() :
|
||||
flag( 0 )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -57,6 +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
|
||||
|
||||
public:
|
||||
|
||||
|
@ -82,6 +83,9 @@ 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; }
|
||||
|
||||
// erase the polygon
|
||||
void erase();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue