aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/background_image.hpp
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_image.hpp
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_image.hpp (renamed from src/menu/frame_background_image.hpp)12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/menu/frame_background_image.hpp b/src/menu/background_image.hpp
index 5aaa58b6..7c0549bf 100644
--- a/src/menu/frame_background_image.hpp
+++ b/src/menu/background_image.hpp
@@ -24,18 +24,18 @@
* $Id$
*/
-#ifndef FRAME_BACKGROUND_IMAGE_HPP
-#define FRAME_BACKGROUND_IMAGE_HPP
+#ifndef BACKGROUND_IMAGE_HPP
+#define BACKGROUND_IMAGE_HPP
#include <boost/filesystem.hpp>
#include <GL/gl.h>
-#include "frame_background.hpp"
+#include "background.hpp"
#include "texture.hpp"
namespace usdx
{
- class FrameBackgroundImage : public FrameBackground
+ class BackgroundImage : public Background
{
private:
Texture* texture;
@@ -48,8 +48,8 @@ namespace usdx
void draw(void);
public:
- FrameBackgroundImage(boost::filesystem::wpath filename);
- virtual ~FrameBackgroundImage();
+ BackgroundImage(boost::filesystem::wpath filename);
+ virtual ~BackgroundImage();
};
};