]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/instancearray.h
Use QueryPool in OccludedScene
[libs/gl.git] / source / render / instancearray.h
index 627051f75b123a973ef878546fddd762708afe59..4d7d3475bbaa500d405ef05b6e3868402f9a2921 100644 (file)
@@ -4,6 +4,8 @@
 #include <vector>
 #include "programdata.h"
 #include "renderable.h"
+#include "vertexarray.h"
+#include "vertexsetup.h"
 
 namespace Msp {
 namespace GL {
@@ -39,9 +41,9 @@ public:
 private:
        const Object &object;
        std::vector<ObjectInstance *> instances;
-       VertexArray *instance_data;
+       VertexArray instance_data;
        Buffer *instance_buffer;
-       VertexSetup *vtx_setup;
+       VertexSetup vtx_setup;
        int matrix_location;
        unsigned matrix_offset;
 
@@ -59,7 +61,7 @@ private:
 public:
        void remove(ObjectInstance &);
 
-       virtual void render(Renderer &, const Tag &) const;
+       virtual void render(Renderer &, Tag) const;
 };
 
 template<typename T>