]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/renderer.h
Treat clear() with null parameter as invalidate
[libs/gl.git] / source / render / renderer.h
index ffaa917dd4f5b8dd772ba5ce008c7f9d1fc372f7..1cbcdc60546b93f0cccc2db6ee5cb95a27107b39 100644 (file)
@@ -177,7 +177,10 @@ public:
        void set_object_lod_bias(unsigned);
        unsigned get_object_lod_bias() const { return get_state().object_lod_bias; }
 
-       void clear(const ClearValue *);
+       /** Clears framebuffer contents.  If values is not null, it must contain one
+       element for each attachment.  Otherwise the framebuffer contents are
+       discarded and become undefined. */
+       void clear(const ClearValue *values);
 
        /** Draws a batch of primitives.  A shader must be active. */
        void draw(const Batch &);