aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/background_color.cpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-04-11 21:19:48 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:40:52 +0100
commite0e9997a5e92ce2a31f0ff4d139109be4434105b (patch)
treee8c3baa67eb65ffc16a9c96fdbb067d142f194bd /src/menu/background_color.cpp
parent40caf6163ff2e1274d71146c207fbde0c099b089 (diff)
downloadusdx-e0e9997a5e92ce2a31f0ff4d139109be4434105b.tar.gz
usdx-e0e9997a5e92ce2a31f0ff4d139109be4434105b.tar.xz
usdx-e0e9997a5e92ce2a31f0ff4d139109be4434105b.zip
menu: generalized frame_background to background
background could now be a background for all DrawableControl instances each subclass should call the parents draw() during executing the draw() method for background painting TODO: background should know the size of the control to only draw the background there
Diffstat (limited to '')
-rw-r--r--src/menu/background_color.cpp (renamed from src/menu/frame_background_color.cpp)8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/menu/frame_background_color.cpp b/src/menu/background_color.cpp
index a0558082..aa8a90d2 100644
--- a/src/menu/frame_background_color.cpp
+++ b/src/menu/background_color.cpp
@@ -24,22 +24,22 @@
* $Id$
*/
-#include "frame_background_color.hpp"
+#include "background_color.hpp"
#include <GL/gl.h>
namespace usdx
{
- FrameBackgroundColor::FrameBackgroundColor(RgbColor &color) :
+ BackgroundColor::BackgroundColor(RgbColor &color) :
color(color)
{
}
- FrameBackgroundColor::FrameBackgroundColor(void) :
+ BackgroundColor::BackgroundColor(void) :
color(0, 0, 0)
{
}
- void FrameBackgroundColor::draw()
+ void BackgroundColor::draw()
{
glClearColor(color.get_red(), color.get_green(), color.get_blue(), 1.0f);
glClear(GL_COLOR_BUFFER_BIT);