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 - Shabla

Pages: [1]
1
General / SFML 2.0 and GWEN
« on: November 27, 2012, 02:22:07 am »
Hi ! In my current game project using SFML 2.0 RC, I've started a quest to find the GUI lib of my dreams that would work together with SFML.

I tried SFGUI, but I found it somewhat missing in features and I had poor performances in the (probably horribly coded) test I made.

Then I tried CEGUI, it looked perfect and very complete, but there doesn't seem to have much support for Windows. I tried to build it (I use VS Express 2010), but no success, even with the tutorial on the subject (both the SFML version and CEGUI version are outdated). In the end I gave up and found out about GWEN.

Now after much fighting with linking errors and whatnot (looks like I'm terrible at this), I finally built GWEN successfully (GWEN static, the SFML renderer and UnitTest). I had to fix some stuff to make it work like lower-casing the first letters of SFML methods and replacing a few methods by their new name (I'm not even certain that these are the right replacements...):
sf::RenderTarget::SaveGLStates() to sf::RenderTarget::pushGLStates()
sf::RenderTarget::RestoreGLStates to sf::RenderTarget::popGLStates()
sf::Text::GetRect() to sf::Text::getGlobalBounds()

I used the SFML sample coming with GWEN and I get this result when the precompiled sample executable gives me this result. My version also crash when I close the window.

My test project has these settings. I tried removing the UnitTest and just displaying a single window, but I get the same result (poor performance and missing graphics). My guess is it has to do with the SFMLRenderer coming with GWEN, but I wouldn't know what is wrong...

If anyone could give me an idea on how I could fix this it would be greatly appreciated, thank you !

2
General / Re: Failed to loadfromfile()
« on: May 11, 2012, 10:18:29 am »
Sorry for the late answer. The message I get in the console is "Failed to load image "data/card/frame2/acard.jpg". Reason : JPEG format not supported (progressive)".
Is this because it's a particular jpg format or is the jpg format not suported at all ?

3
General / Re: Failed to loadfromfile()
« on: May 09, 2012, 04:26:03 am »
I know this is an old topic, but I have the same problem with the SFML 2.0 RC.
Code: [Select]
sf::Texture bg;
    if( !bg.loadFromFile( "data/card/frame2/acard.jpg" ) )
        return EXIT_FAILURE;
It fails to load the jpg files... I don't know if this is normal, but I just converted my file acard.jpg to acard.png with paint and it works.

Pages: [1]
anything