#include "Apollo.h"
Apollo::Apollo(sf::VideoMode videoMode, sf::String title, lwe::LevelSystem levelSystem) : Engine(videoMode, title, levelSystem)
{
window->setIcon(32, 32, iconData);
tex = new sf::Texture();
font = new sf::Font();
text = new sf::Text();
if (!tex->loadFromFile("Profile.png"))
{
std::cout << "Failed to load image." << std::endl;
}
sp = new sf::Sprite(*tex);
if (!font->loadFromFile("Calibri.ttf"))
{
std::cout << "Failed to load font." << std::endl;
}
text->setFont(*font);
}
Apollo::~Apollo()
{
}
void Apollo::Update(sf::Time *time)
{
text->setString("FPS: " + lwe::ToString(*fps));
}
void Apollo::Render(sf::Time *time)
{
//window->draw(*sp);
window->draw(*text);
}