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

Pages: [1]
1
Window / Resize event on window creation
« on: December 11, 2013, 12:19:59 am »
How can I send a resize event right before the main loop or during creation? It doesn't poll the event:
case sf::Event::Resized:
   std::cout << "resized";
   break;
 

I tried

mRenderWindow.setSize(mRenderWindow.getSize())

No luck. If I resize from use point of view, it resizes (as it should!). After doing some tests and digging through source for validation I found out that, the reason it doesn't resize it because the size doesn't change. Additionally I cannot create a (0,0) render window and then use setSize, since it gives me "invalid drawable" which makes sense.

How can I achieve what I want?

2
Window / Re: Is there a way to send a "Close" event to Window?
« on: November 30, 2013, 01:05:25 pm »
This whole thing started with me trying to figure out how to keep input and window separately. Is there a way to receive the current event from mWindow to process and dispatch the needed events to the window system to close?

3
Window / Re: Is there a way to send a "Close" event to Window?
« on: November 29, 2013, 09:31:12 pm »
I want to keep Input separate from Window. If I press Escape an event I assigned gets send (for example "closeWindow"), then the GraphicsSystem gets the event and changes the status of the Event Object. I guess I am going to call the quit function straight up.

4
Window / Is there a way to send a "Close" event to Window?
« on: November 29, 2013, 08:15:34 pm »
I want to send a "close" event to sf::Window from an external source. Is that possible?

Pages: [1]