From e7f4fdd7f9585c2f5f1803bf3264c118251d86db Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sat, 26 Dec 2009 14:34:53 +0100 Subject: converted UMenuBackgroundColor --- src/menu/menuBackground.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/menu/menuBackground.cpp') diff --git a/src/menu/menuBackground.cpp b/src/menu/menuBackground.cpp index 430ff0d1..819eef5b 100644 --- a/src/menu/menuBackground.cpp +++ b/src/menu/menuBackground.cpp @@ -37,4 +37,18 @@ namespace usdx if (screen_act == 0) glClear(GL_DEPTH_BUFFER_BIT); } + + MenuBackgroundColor::MenuBackgrundColor(RGB &color) + { + this->color = color; + } + + void MenuBackgroundColor::draw(void) + { + // just clear once, even when using two screens + if (screen_act == 1) { + glClearColor(color.r, color.g, color.b, 0); + glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT); + } + } }; -- cgit v1.2.3