SHADER_DATA = 16
};
+ unsigned frame_index = 0;
unsigned char changed = 0;
std::vector<State> state_stack;
State *current_state = 0;
commands are allowed before the next call to begin(). */
void end();
+ using RendererBackend::begin;
+ using RendererBackend::end;
+
/** Saves the current state so it can be restored later. */
void push_state();
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 &);