Okay, so I'm making a little engine wrapper type deal that relates to the java slick game library. Loading of images work fine, and everything else and using sfeMovie, the audio plays but no video plays, and no sprites or anything are actually displayed onto the screen when window.display() is called. The way the engine works, a class is derived from the hGame class, containing pure virtual functions (abstract class with the rendering and updating functions to be overwritten.)
Here, the game system (after being given an instance of a derived hGame class in the main function) carries out the loop of the game using the redefined functions. "Window" is a wrapper around RenderWindow (hWindow class)
void hGameSystem::Run(hGame* g)
{
g->init();
hInput input;
hGameSystem sys = (*this);
sf::Clock Clock;
Clock.restart();
while (Running)
{
input.GlobalGetInput(Window);
g->update(sys,input);
g->render(sys,Window); //Here's the problem I suppose?
sf::Time Time = Clock.getElapsedTime();
if (Time.asMilliseconds() < (1000/FPSLimit))
{
Sleep((1000/FPSLimit)-Time.asMilliseconds());
}
Clock.restart();
}
g->cleanup();
}
The redefined render function
window->Clear();
sf::Sprite b(a);
window->rw->draw(b);
window->Display();
Is there something else I'm not understanding? SFML 2.0, by the way. And there's nothing wrong with the SFML installation itself, as if I run the same video file or any sprite through a barebones main like the sfeMovie example, it works fine.
Edited for language specification? o.o