X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fvertexformat.h;h=64c89e13166abae491fa2a50d30785cddd7a86cc;hp=d5835013b53a925584bbfa8055a663f1f1382ed4;hb=08e74e913d80693c79c00c18da1130cc5604952c;hpb=5aeec81a23bc83e90d5daa5eb7b08534c2e238d0 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];