// $Id: SDLConsole.hh 5733 2006-10-02 13:16:39Z m9710797 $ #ifndef SDLCONSOLE_HH #define SDLCONSOLE_HH #include "OSDConsoleRenderer.hh" #include class SDL_Surface; namespace openmsx { class SDLImage; class SDLConsole : public OSDConsoleRenderer { public: SDLConsole(Reactor& reactor, SDL_Surface* screen); virtual void loadFont(const std::string& filename); virtual void loadBackground(const std::string& filename); virtual unsigned getScreenW() const; virtual unsigned getScreenH() const; virtual void paint(); virtual const std::string& getName(); private: void updateConsoleRect(); SDL_Surface* outputScreen; std::auto_ptr backgroundImage; std::string backgroundName; }; } // namespace openmsx #endif