Hello!
I can get this library to work
( vs2012 )
After the program compiles and runs there is no picture. There are several dll-s but none of them is working. There is sound from the bunny animation. What could be the problem?
MovieState.h
#ifndef MovieState_h__
#define MovieState_h__
#include <SFML/Graphics.hpp>
#include <SFML/Graphics/Texture.hpp>
#include "sfe/include/sfeMovie/Movie.hpp"
#include "gameState.h"
#include "Globals.h"
class Game;
class MovieState :public GameState{
private:
//pointer to the game (for the render)
Game *game;
sfe::Movie* intro;
public:
MovieState();
MovieState(Game*);
~MovieState();
void Update();
void Draw();
};
#endif // MovieState_h__
MovieState.cpp
#include "MovieState.h"
#include "game.h"
//DO NOT USE
MovieState::MovieState(){}
MovieState::MovieState( Game *game )
{
intro = new sfe::Movie;
this -> game = game;
// if( !intro->openFromFile( "introkszk.ogv" ) )
// game->currentState = MENU;
intro->openFromFile( "some_movie.ogv" );
game->window.Getwindow().setVerticalSyncEnabled( true );
//intro.resizeToFrame( 0 , 0 , Globals::resolution->xres , Globals::resolution->yres );
intro->play();
Globals::log->log( "intro" );
}
MovieState::~MovieState(){}
void MovieState::Update()
{
// if( sf::Keyboard::isKeyPressed( sf::Keyboard::Space ) || sf::Keyboard::isKeyPressed( sf::Keyboard::Escape ) )
// {
// game->currentState = MENU;
// }
}
void MovieState::Draw()
{
game -> window.Getwindow().draw( *intro );
}