X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fvertexsetup.h;h=2e483fc81768e1fcb3b4c0b15a5c91b53fd346cb;hb=bae374a3cda6a1b59f36016624ef518bf2676355;hp=756f5bc03644990990aafb1f360c1cebb9b6bfe0;hpb=73567be7cd9e01e620cb2a8fa0ca381723b9a71f;p=libs%2Fgl.git diff --git a/source/core/vertexsetup.h b/source/core/vertexsetup.h index 756f5bc0..2e483fc8 100644 --- a/source/core/vertexsetup.h +++ b/source/core/vertexsetup.h @@ -16,6 +16,8 @@ objects. Intended for internal use. */ class VertexSetup { + friend class PipelineState; + private: enum ComponentMask { @@ -50,14 +52,13 @@ public: private: static bool verify_format(const VertexFormat &); + static void require_format(const VertexFormat &); void update() const; void update_vertex_array(const VertexArray &, unsigned, unsigned, bool) const; public: void refresh() const { if(dirty) update(); } - unsigned get_id() const { return id; } - void unload(); void set_debug_name(const std::string &);