]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/vertexsetup.h
Add color write mask to blend state
[libs/gl.git] / source / core / vertexsetup.h
index 756f5bc03644990990aafb1f360c1cebb9b6bfe0..2e483fc81768e1fcb3b4c0b15a5c91b53fd346cb 100644 (file)
@@ -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 &);