Browse Source

Added Renderer::flush() and Renderer::finish().

pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
5c5c9d81d8
  1. 23
      src/Renderer.h

23
src/Renderer.h

@ -664,6 +664,29 @@ class MAGNUM_EXPORT Renderer {
/*@}*/
#endif
/** @{ @name Renderer management */
/**
* @brief Flush the pipeline
*
* @see finish(), @fn_gl{Flush}
*/
inline static void flush() {
glFlush();
}
/**
* @brief Finish the pipeline
*
* Blocks until all commands in the pipeline are finished.
* @see flush(), @fn_gl{Finish}
*/
inline static void finish() {
glFinish();
}
/*@}*/
};
}

Loading…
Cancel
Save