Draw in abstract units and scale to pixels at the end.

This commit is contained in:
King_DuckZ 2014-03-12 11:04:22 +01:00
parent a561242395
commit 0c6275f41c
9 changed files with 73 additions and 22 deletions

View file

@ -19,12 +19,13 @@
#include "tiledwallpaper.hpp"
#include "texture.hpp"
#include "sdlmain.hpp"
namespace cloonel {
///--------------------------------------------------------------------------
///--------------------------------------------------------------------------
TiledWallpaper::TiledWallpaper (const std::string&& parPath, SDLMain* parMain) :
Drawable(0, 0),
Drawable(128.0f, 128.0f),
m_tile(new Texture(parPath, parMain, false))
{
}
@ -49,6 +50,6 @@ namespace cloonel {
///--------------------------------------------------------------------------
///--------------------------------------------------------------------------
void TiledWallpaper::Draw() const {
m_tile->Render(int2(0));
m_tile->Render(float2(0.0f));
}
} //namespace cloonel