X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fvertexsetup.h;h=208e55d3cd676729d4299024feaad06a273bf3d2;hp=7daef8845ac03688c570af5c40ff10f8a80324dc;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=3bc34893905a2df622894aadcb6669f27f186772 diff --git a/source/core/vertexsetup.h b/source/core/vertexsetup.h index 7daef884..208e55d3 100644 --- a/source/core/vertexsetup.h +++ b/source/core/vertexsetup.h @@ -27,17 +27,15 @@ private: INDEX_BUFFER = 4 }; - mutable unsigned dirty; - const VertexArray *vertex_array; + mutable unsigned dirty = 0; + const VertexArray *vertex_array = 0; VertexFormat vertex_format; - const VertexArray *inst_array; + const VertexArray *inst_array = 0; VertexFormat inst_format; - const Buffer *index_buffer; - DataType index_type; + const Buffer *index_buffer = 0; + DataType index_type = UNSIGNED_SHORT; public: - VertexSetup(); - void set_format(const VertexFormat &); void set_format_instanced(const VertexFormat &, const VertexFormat &);