X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fvertexformat.h;h=64c89e13166abae491fa2a50d30785cddd7a86cc;hp=d5835013b53a925584bbfa8055a663f1f1382ed4;hb=7ef75a4c4dbfc437e466381dd67c23357e607b82;hpb=190a7e11237351f6b730c28f7b16f183e8adc69c diff --git a/source/core/vertexformat.h b/source/core/vertexformat.h index d5835013..64c89e13 100644 --- a/source/core/vertexformat.h +++ b/source/core/vertexformat.h @@ -76,9 +76,10 @@ Describes the attributes of a vertex. Up to 15 attributes are allowed. */ class VertexFormat { -private: - enum { MAX_ATTRIBUTES = 15 }; +public: + static constexpr unsigned MAX_ATTRIBUTES = 15; +private: std::uint8_t count = 0; VertexAttribute attributes[MAX_ATTRIBUTES];