]> git.tdb.fi Git - libs/gl.git/blobdiff - source/immediate.h
Make ambient occlusion edge detection threshold adjustable
[libs/gl.git] / source / immediate.h
index 7e99272bb19e7b0d925b69f62a05b09c979bf8c4..40e25cd667c8f6771f01890a49e89a96c134f672 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GL_IMMEDIATE_H_
 #define MSP_GL_IMMEDIATE_H_
 
@@ -24,12 +17,15 @@ class Immediate: public PrimitiveBuilder
 {
 private:
        VertexArray array;
+       std::vector<unsigned> indices;
 
 public:
        Immediate(VertexFormat);
+       void reset();
 private:
-       virtual void begin_() { }
+       virtual void begin_();
        virtual void end_();
+       virtual void element_(unsigned);
 };
 
 } // namespace GL