Alright I'll put a minimal example here...
I am using SFML 2.1 and I got it from SFML site -> Download -> 2.1 -> Windows -> Visual Studio 2010 10 (I didn't recompiled with CMAKE or whatever, just straight from the site...)
So I guess this example is ok? :
#include <sfTheora.h>
#include <SFML/Audio.hpp>
#include <SFML/Config.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Network.hpp>
#include <SFML/OpenGL.hpp>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include "textCreator.h"
#include "mainScreen.h"
#include <iostream>
#include <cstdlib>
#include <time.h>
#include <string>
#include "variables.h"
#include "Funcs.h"
using namespace std;
int main()
{
sf::ContextSettings settings;
settings.antialiasingLevel = 8;
sf::RenderWindow window(sf::VideoMode(fullscreen.width, fullscreen.height), "SFML Project", sf::Style::Fullscreen, settings);
sf::Clock clock;
// window.setVerticalSyncEnabled(true); <- I removed it because it wasnt doing anything and yes I tried //frame rate limit as well!
mainFont.loadFromFile("Fonts\\sansation.ttf"); //mainFont is located on file variables.h
sf::Text pressENT;
pressENT.setColor(sf::Color::White);
pressENT.setFont(mainFont);
pressENT.setString("Press [ENTER] to Skip this Video");
pressENT.setPosition(fullscreen.width-(fullscreen.width*0.65), fullscreen.height-(fullscreen.height*0.10));
sftheora::Video introVideo("intro.ogg");
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
//... normal event codes here + a few ones like mouse clicks, F12 etc that I inserted
}
introVideo.update(clock.restart());
window.clear();
if(introVideo.isDone() == false)
{
window.draw(introVideo);
window.draw(pressENT);
}
if(introVideo.isDone() == true)
{
if(isMainScreenOn==true)
{
mainScreen::drawMainScreen(&window); //mainScreen.h / mainScreen.cpp... it's basically //a collection of items that are drawn if you want I can post that as well?
}
}
window.display();
}
return EXIT_SUCCESS;
}