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

Pages: [1]
1
General discussions / Re: SFML 3 - What is your vision?
« on: April 25, 2014, 01:07:37 pm »
* a technique to insert an event (example: my_triple_mouse_click) to the event loop
Why would you need that? You can easily have a custom event queue on top of SFML's...

There is a little overhead in adding an own event queue. Just call window.pushEvent(myEvent) would be nice.

* timer events
Can you elaborate?

Lets say, you would like to close a window after some seconds, check for network after some time, save a game state on disk every hour and so on. I know, that these things can be done by a thread or checking for the clock every iteration. But I think, that would by a nice to have.


// start timer numer 3, just once after 60 ms
timer3.start(60, false);

...
    if (event.type == sf::Event::Closed)
        window.close();
    else if(event.type == sf::Event::Timer)
    {
        // which timer?
        // do something
    }
...

2
General discussions / Re: SFML 3 - What is your vision?
« on: April 25, 2014, 11:33:21 am »
Hi,

* I vote for C++-11
* removing sf::clock and sf::thread and friends in favour of the C++-versions of it.
* a technique to insert an event (example: my_triple_mouse_click) to the event loop
* timer events


3
General / Re: Help setting up SFML
« on: April 06, 2014, 02:21:52 pm »
For me, without knowing Java, it looks as the render window gets created and a millisecond later destroyed. Do you have to create the window "static"?

Again, I think a message loop could help.

4
General / Re: Need some help with structs or classes.
« on: April 05, 2014, 03:20:08 pm »
I don't know VB, but have a look at "enum". How do you think about a C++ book?  ;)


5
General / Re: opening an SFML and a QT window in the same time
« on: April 05, 2014, 10:12:54 am »
Hi!

Side Note: You can do similar things with QT, so you don't need SFML for this.

Could you simplify the example a little bit and provide an event-loop like

while(window.isOpen())
{
        sf::Event event;
        while(window.pollEvent(event))
        {
...
 

6
General / Re: Help setting up SFML
« on: April 05, 2014, 10:00:45 am »
For me it looks as your code is missing an event loop.


Pages: [1]