diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-12-26 14:34:53 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:42 +0100 |
commit | e7f4fdd7f9585c2f5f1803bf3264c118251d86db (patch) | |
tree | 39ea5eaa10a4fae336730978d2da43bff84eb762 /src/menu/menuBackground.cpp | |
parent | 29dad9d5684ce458666ff008f4c5ef8f3539bc40 (diff) | |
download | usdx-e7f4fdd7f9585c2f5f1803bf3264c118251d86db.tar.gz usdx-e7f4fdd7f9585c2f5f1803bf3264c118251d86db.tar.xz usdx-e7f4fdd7f9585c2f5f1803bf3264c118251d86db.zip |
converted UMenuBackgroundColor
Diffstat (limited to '')
-rw-r--r-- | src/menu/menuBackground.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
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); + } + } }; |