From d8e80ce96801510fde0a256d92dc5fac8adfe22c Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 4 Apr 2010 13:41:32 +0200 Subject: renamed Song::cover to Song::cover_file and added Texture* Song::cover --- src/base/song.cpp | 6 +++--- src/base/song.hpp | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'src/base') diff --git a/src/base/song.cpp b/src/base/song.cpp index 959102c2..9b0cbf12 100644 --- a/src/base/song.cpp +++ b/src/base/song.cpp @@ -51,7 +51,7 @@ namespace usdx bpm.push_back(new BPM(get_header_tag_float(L"BPM", true))); gap = get_header_tag_float(L"GAP"); - cover = get_header_tag(L"COVER"); + cover_file = get_header_tag(L"COVER"); background = get_header_tag(L"BACKGROUND"); video = get_header_tag(L"VIDEO"); @@ -226,9 +226,9 @@ namespace usdx return gap; } - const std::wstring& Song::get_cover(void) const + const std::wstring& Song::get_cover_file(void) const { - return cover; + return cover_file; } const std::wstring& Song::get_background(void) const diff --git a/src/base/song.hpp b/src/base/song.hpp index 2217e244..d0c06c9a 100644 --- a/src/base/song.hpp +++ b/src/base/song.hpp @@ -34,6 +34,7 @@ #include #include "bpm.hpp" #include "lyric_line.hpp" +#include "texture.hpp" #include "utils/base_exception.hpp" namespace usdx @@ -74,8 +75,8 @@ namespace usdx std::wstring video; float video_gap; - std::wstring cover; - // texture cover_tex; + std::wstring cover_file; + Texture* cover; std::wstring genre; std::wstring edition; @@ -127,7 +128,7 @@ namespace usdx const std::wstring& get_mp3(void) const; const float get_bpm(int beat) const; const float get_gap(void) const; - const std::wstring& get_cover(void) const; + const std::wstring& get_cover_file(void) const; const std::wstring& get_background(void) const; const std::wstring& get_video(void) const; const float get_video_gap(void) const; -- cgit v1.2.3