Commit 129a6fc8 authored by Michele Bosi's avatar Michele Bosi

Vivid: background getter/setter

parent 1e57a36c
......@@ -123,6 +123,9 @@ namespace vl
// Background settings
void setBackgroundColor( const vec4& color ) { camera()->viewport()->setClearColor( color ); }
const vec4& backgroundColor() const { return camera()->viewport()->clearColor(); }
void setBackgroundImageEnabled( bool enabled ){ mBackgroundImageEnabled = enabled; }
bool backgroundImageEnabled() const { return mBackgroundImageEnabled; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment