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

Pages: [1]
1
General / SFML freezes when mouse moves (VS 2010)
« on: December 25, 2011, 02:09:46 pm »
Hi i had the same problem but I finally found the problem!!!

App.PollEvent causes sfml to read the mouse movement too much.

I guessed it by reading this:
http://www.gamedev.net/topic/575371-sfml---quick-mouse-movement-lags-input/

Usually we have App.PollEvent copied from the SFML default set up to close the window.

Code: [Select]

Event Event;
while (App.PollEvent(Event))
{
// Close window : exit
if (Event.Type == Event::Closed)
{
App.Close();
}
}
//QUIT
if(Keyboard::IsKeyPressed(Keyboard::Escape))
{
App.Close();
}

2
Graphics / Loading PNG?
« on: October 20, 2011, 12:05:44 pm »
This is an outdated thread, but I just encountered the problem and would like to share my solution. Just in case somebody runs into the same problem.

Actually when it says "Failed to load image "IMAGE NAME". Reason : PNG not supported: 8-bit only" It actually meant it only accepts 8 bit.

The admin kept saying it doesn't accepts 8 bit, which confused a lot of people. But it's actually the opposite: it only accepts 8 bit. I don't know about 24 bits, but I think 16 and 32 does not work.

Pages: [1]
anything