All your help will be appreciated!
Here is my code, I linked all what i need and added DLLs and i have font next to executable in Debug folder, Here's my Visual C++ 2010 Express code:
#include <SFML\Graphics.hpp>
#include <Windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
sf::RenderWindow Application(sf::VideoMode(800, 600, 32), "SFML TrueType Font");
sf::Color ApplicationColor;
sf::Event event;
while(Application.isOpen()) {
while(Application.pollEvent(event)) {
if(event.type == event.Closed)
Application.close();
}
sf::Font font;
sf::Text text;
font.loadFromFile("stacky.ttf");
text.setFont(font);
text.setString("Stacky Font");
text.setCharacterSize(36);
text.setPosition(100.0f, 100.0f);
Application.clear(sf::Color::White);
Application.draw(text);
Application.display();
}
return 0;
}
Please help, i will explode!!!