Core/Flags: Reworked Flags class

This commit is contained in:
Jérôme Leclercq
2017-11-21 12:26:22 +01:00
parent f2506ee918
commit 3589a2bc8e
13 changed files with 49 additions and 39 deletions

View File

@@ -64,8 +64,7 @@ namespace Nz
template<>
struct EnumAsFlags<BufferUsage>
{
static constexpr bool value = true;
static constexpr int max = BufferUsage_Max;
static constexpr BufferUsage max = BufferUsage_Max;
};
using BufferUsageFlags = Flags<BufferUsage>;

View File

@@ -69,12 +69,12 @@ namespace Nz
std::vector<Frame> m_frames;
std::vector<Joint> m_joints;
Stream& m_stream;
StreamOptionFlags m_streamFlags;
String m_currentLine;
bool m_keepLastLine;
unsigned int m_frameIndex;
unsigned int m_frameRate;
unsigned int m_lineCount;
unsigned int m_streamFlags;
};
}

View File

@@ -75,11 +75,11 @@ namespace Nz
std::vector<Joint> m_joints;
std::vector<Mesh> m_meshes;
Stream& m_stream;
StreamOptionFlags m_streamFlags;
String m_currentLine;
bool m_keepLastLine;
unsigned int m_lineCount;
unsigned int m_meshIndex;
unsigned int m_streamFlags;
};
}