Added EmptyMark to base class

Standardized name of flags. It is plural becouse each simplex has many flag.
This commit is contained in:
Paolo Cignoni 2005-11-16 22:56:32 +00:00
parent 4b7b1c1015
commit 293a23721d
1 changed files with 8 additions and 4 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.3 2005/11/12 18:42:18 cignoni
Added ClearS and GetBBox
Revision 1.2 2005/10/14 13:26:57 cignoni Revision 1.2 2005/10/14 13:26:57 cignoni
First Really Working version First Really Working version
@ -83,9 +86,10 @@ class FaceBase: public face::EmptyVertexRef<
face::EmptyAdj< face::EmptyAdj<
face::EmptyColorQuality< face::EmptyColorQuality<
face::EmptyNormal< face::EmptyNormal<
face::EmptyFlag< face::EmptyBitFlags<
face::EmptyMark<
face::EmptyWedgeTexture< face::EmptyWedgeTexture<
FaceTypeHolder <BVT, BET, BFT, BTT> > > > > > >{ FaceTypeHolder <BVT, BET, BFT, BTT> > > > > > > >{
}; };
@ -233,13 +237,13 @@ static int &LastBitFlag()
} }
/// allocate a bit among the flags that can be used by user. /// allocate a bit among the flags that can be used by user.
static inline int NewUserBit() static inline int NewBitFlag()
{ {
LastBitFlag()=LastBitFlag()<<1; LastBitFlag()=LastBitFlag()<<1;
return LastBitFlag(); return LastBitFlag();
} }
// de-allocate a bit among the flags that can be used by user. // de-allocate a bit among the flags that can be used by user.
static inline bool DeleteUserBit(int bitval) static inline bool DeleteBitFlag(int bitval)
{ {
if(LastBitFlag()==bitval) { if(LastBitFlag()==bitval) {
LastBitFlag()= LastBitFlag()>>1; LastBitFlag()= LastBitFlag()>>1;