Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - gazben

Pages: [1]
1
SFML wiki / Re: sfeMovie project [v1.0 RC1 available]
« on: August 19, 2013, 02:29:00 pm »
It works now :) There was a problem with the linker options. But there is another problem. When a try to close the program this pops up: First-chance exception at 0x75CBA4B9 (ole32.dll) in project.exe: 0xC0000005: Access violation reading location 0xFEEEFEEE.

What could be the problem?

2
SFML wiki / sfeMovie project [v1.0 RC1 available]
« on: August 15, 2013, 10:38:55 pm »
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 );
}
 

Pages: [1]