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

Pages: [1]
1
Feature requests / Get- and Set-functions for a sfWindow.
« on: August 31, 2007, 12:46:54 am »
You already provide tons of getters. With the proposed way of operator overloading the interface is just as clean, in my opinion.

2
Feature requests / Get- and Set-functions for a sfWindow.
« on: August 29, 2007, 06:17:10 pm »
I find it quite weird that you choose to create a function "UseVerticalSync(bool)" and at the same time provide no functions for getting the boolean variable. I guess that there are other than me who would like BOTH get- and set functions for a window.

When creating a game, you'd most likely want to implement some kind of console which can set and get the variables. That is quite easy to do with delegates and boost::bind, but having to implement you own set and get methods for each variable, just for use when recreating the window is a bit silly.

You can get the window width, but you cant set it. There's no way of actually modifying the variable itself, so i cant write my own Set-functions, and therefor I cannot bind such functions in a console system. Same goes for height, bits per pixel, window caption etc. And the opposite is the case for UseVerticalSync.

And now that we are at it. Why even call the methods "Get<thing>".  In C++ you can use overloading to do like this instead:

Code: [Select]
void Width(const unsigned int)
{
< " assign "> ;
}
unsigned int Width() const
{  
< " return " >;
}

3
Window / Window Caption is weird.
« on: August 16, 2007, 10:48:12 pm »
I somehow think you have a lil' bug in the window caption when creating a window.

I'm using MSVC 2008 Beta 2, and I finally got things running just fine. However, when a window is created, the caption is the caption chosen, but some random garbage is included before the actual text.

Here is a screen:


Also it would be nice to see a function for changing the window caption.

Pages: [1]
anything