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

Pages: 1 2 3 [4]
46
Graphics / Swapping fullscreen and windowed mode
« on: July 26, 2010, 01:38:31 pm »
Thanks works like charm and I don't have to update pointer through all classes.

One more question, SFML outputs this line into console while switching to fullscreen: "The requested video mode is not available, switching to a valid mode".

It comes to fullscren fine, there's just little blink, but I would like to know what's that "valid" mode when this one isn't:

Code: [Select]
App.Create(sf::VideoMode(VAL->ScreenX, VAL->ScreenY, 32), caption,sf::Style::Fullscreen)

And does it point to sf::VideoMode or sf::Style?

Edit: Nevermind I got it, it's complaining about screen resolution. Is there way to check if the screen resolution is valid for computer?

Edit 2: got that too... just for anyone looking there:

Code: [Select]
sf::VideoMode::GetModesCount
sf::VideoMode::GetMode


or

Code: [Select]
sf::VideoMode::IsValid

Thanks for help with that switching though :)

47
Graphics / Swapping fullscreen and windowed mode
« on: July 26, 2010, 01:46:48 am »
Is there way to switch between video modes without recreating whole class?

My current code, reacts on ctrl+enter:

Code: [Select]
if (Event.Key.Code == sf::Key::Return)
{
if(Event.Key.Control){
fullsize = !fullsize;
delete App;
if(fullsize)
App = new sf::RenderWindow(sf::VideoMode(VAL->ScreenX,
VAL->ScreenY, 32), caption,sf::Style::Fullscreen);
else
App = new sf::RenderWindow(sf::VideoMode(VAL->ScreenX,
VAL->ScreenY, 32), caption);
if(!App)
return EXIT_FAILURE;
}
}

48
Window / Inputing Text to SFML
« on: July 25, 2010, 04:43:51 pm »
Ok I got working. I would just like to ask how SFML recognize what is text. Because keys like F1, home, delete are not recognized (which is good), but it recognized backspace as UNICODE char 8. I think that number it has also in ANSII, but shouldn't be treated backspace way like delete? I'm just asking it's nice class for input though (way better then in GLUT). I think that's only one key maybe two with TAB so handling it won't be a problem :)

49
Window / Inputing Text to SFML
« on: July 25, 2010, 12:25:35 am »
Before I write my code for receiving text from user through Event.Key.Code, and I will end with solution supporting only ANSII, is there way to capture text as I would write to text editor (Actually funny I swapped GLUT for SFML because it couldn't handle Key Codes, but now I need thing that GLUT does provide as only input). I mean I don't want to receive shift+a, but A, or shift+3 = #. I hope there is some way to doo it, I saw sf::String, but can't find what I'm looking for. If there is this solution it would be good idea to give it to tutorial.

50
Audio / libsndfile-1.dll
« on: July 24, 2010, 12:12:05 pm »
Thanks for fast reply. Interesting library indeed, does SFML have support for all sound files supported by this library? (I see there FLAC, PVF and so on)

51
Audio / libsndfile-1.dll
« on: July 24, 2010, 11:08:48 am »
I was curious what is libsndfile-1.dll. I was asked for it (later on found in extlib) in sound playback tutorial. I found about something with LAME, but I would like to ask here what is this DLL part of.

Thanks in advance

Pages: 1 2 3 [4]