diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-11 21:19:48 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:40:52 +0100 |
commit | e0e9997a5e92ce2a31f0ff4d139109be4434105b (patch) | |
tree | e8c3baa67eb65ffc16a9c96fdbb067d142f194bd /src/menu/background_image.cpp | |
parent | 40caf6163ff2e1274d71146c207fbde0c099b089 (diff) | |
download | usdx-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_image.cpp (renamed from src/menu/frame_background_image.cpp) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/menu/frame_background_image.cpp b/src/menu/background_image.cpp index 893d573c..c8d8642c 100644 --- a/src/menu/frame_background_image.cpp +++ b/src/menu/background_image.cpp @@ -24,11 +24,11 @@ * $Id$ */ -#include "frame_background_image.hpp" +#include "background_image.hpp" namespace usdx { - FrameBackgroundImage::FrameBackgroundImage(boost::filesystem::wpath filename) + BackgroundImage::BackgroundImage(boost::filesystem::wpath filename) { texture = new Texture(filename); @@ -68,12 +68,12 @@ namespace usdx this->tex[7] = 0.0f; } - FrameBackgroundImage::~FrameBackgroundImage() + BackgroundImage::~BackgroundImage() { delete texture; } - void FrameBackgroundImage::draw(void) + void BackgroundImage::draw(void) { glClear(GL_COLOR_BUFFER_BIT); |