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 - Fuzzy_Wuzzy.bmp

Pages: [1]
1
General / SFML program only works on my PC
« on: January 25, 2010, 08:29:09 pm »
Woops, figured it out. My program was trying to open a window bigger than their screen resolution.

2
General / SFML program only works on my PC
« on: January 25, 2010, 05:09:04 pm »
Nope, where do I find them? Can't find anything by those names in the wiki.

3
General / SFML program only works on my PC
« on: January 25, 2010, 04:38:35 pm »
Nope.

4
General / SFML program only works on my PC
« on: January 25, 2010, 02:21:00 pm »
On other computers it just opens the command line. The OS's are WinXP, I'm using codeBlocks, dynamic bindings, and yes I did put the .exe and the .dll's in the same folder. If I remove one of the .dll's from the folder on my pc, it also won't run - gives an error about how it can't find the .dll. On other PC's it gives no error - just the command bar. Any idea what I'm doing wrong?

Edit: Tried the test program (the one on the tutorials, that just outputs the elapsed time in 0.5 second intervals in the command line) and it works on my and my friends computer. Same compiler settings and all, also, the program that doesn't work, it actually works, except for the graphics. Hope that helps.

5
Graphics / Nested drawables to manipulate them toghether, sf hierarchy?
« on: September 27, 2009, 03:39:06 am »
I have a similar problem. I'm currently using a std::list<sf::Shape> to draw concave shapes, but since I have to rotate each sf::Shape separately, I'm worried that I'm wasting resources recalculating the transformation matrix each time. Any ideas how to do this efficiently?

Also, I don't understand what you mean by
Quote from: "Laurent"
In SFML, if you draw a child Drawable while drawing a parent one (ie. in its Render function), the child automatically inherits its transformations (and color in SFML 2).

Do you mean that if I do this:
Code: [Select]
class Sprites : public sf::Drawable
{
    void Draw(sf::RenderWindow& targetScreen)
    {
        for(iterator = sprites.begin(); iterator != sprites.end(); iterator++)
            targetScreen.Draw(*iterator);
    }
    std::vector<sf::Sprite> sprites;
};

And then this:
Code: [Select]
Sprites someSprites;
someSprites.SetRotation(75.f);
someSprites.Draw(someWindow);

It'll magically draw all the sprites with a rotation of 75 degrees?

Pages: [1]
anything