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

Pages: [1]
1
Network / Re: sf::NonCopyable
« on: November 02, 2015, 04:28:37 pm »
In this case, you need to pass std::ref(server) to sf::Thread to explicitly tell to the compiler that the argument is a reference. Otherwise, the compiler tries to perform a copy.

2
Graphics / Re: SFML does not allocates depth buffer
« on: October 16, 2015, 02:53:50 pm »
Do you call glEnable(GL_DEPTH_TEST) ? I think it's disabled by default.

3
General / Re: collision detection
« on: October 16, 2015, 02:47:56 pm »
Hello,

The break statement in C++ will break out of the for statement in which the break is directly placed. In your sample, the outer loop will continue and your code will reset the color to blue.

4
General / Android: Half a second delay before launching the app
« on: September 07, 2015, 10:34:47 am »
Hello,

Is the 'sleep(seconds(0.5));' in MainAndroid.cpp intentional ? It's not long but it's still visible that the app does not start immediately.

5
Quote from: "Joshua Flynn"
Given template list is a base class to FileProc, StringTokeniser, HTMLFileProc etc, having it optimised is worth it in the long run.


You're spending time optimizing something without profiling it first. Optimization is a very hard topic. Guessing is not a good idea.

I'm not saying that you should not write your own list. But it should be only for a learning purpose.

If in an application you need a container, most of the time STL containers are better than custom class (and almost always vector is the best choice).

Pages: [1]