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.


Topics - RetroX

Pages: [1]
1
Feature requests / Multi-sized Window Icon
« on: March 07, 2010, 09:31:39 pm »
Another request for sf::Window.  It should be possible to set the window icon for multiple sizes (16x16, 32x32).  I know that both X11 and WinAPI support this, and it really does seem like a useful feature.

Basically, SetIcon() should set different images depending on the given widths/heights, and there should be the ability to unset these various icons.  Possibly, a function like sf::Window::UnSetIcon(unsigned int,unsigned int).

2
Feature requests / Getting/setting title of sf::Window?
« on: March 07, 2010, 03:44:28 am »
Probably been asked for before, but it seems like one of the very few features in SFML that is really needed.  And while it can be done, the only solutions are not cross-platform.

Basically would be something like:
void sf::Window::SetTitle(std::string Title)
std::string sf::Window::GetTitle()

3
Graphics / Creating std::vector of sf::Image/Sound
« on: March 07, 2010, 03:36:22 am »
This is probably a frowned-upon method of doing things.

Would it be considered "safe" to create an std::vector of sf::Image, to act as an array?  I use it as a way to store dynamically-sized arrays of loaded images, but after reading the tutorial, it warns on Image-loading and the like, and I'd like to just ask for a general opinion.  It hasn't caused any problems on my new box (3.4GHz x4, 4GB, Arch Linux/Win7) or my old box (1.2GHz x1, 512MB, Arch Linux/Win2k).

For example, the following code:
Code: [Select]
std::vector<sf::Image> array;
array.resize(2);
if (!array[0].LoadFromFile("image.png") || !array[1].LoadFromFile("image2.png"))
 {
 exit(EXIT_FAILURE);
 }

(obviously, in this case, you'd just use sf::Image array[2], but as a concept)

I have no idea how std::vector or sf::Image work, so, I figured that I'd ask this.

Pages: [1]
anything