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

Pages: [1]
1
Graphics / Re: White sprite
« on: June 01, 2012, 08:48:42 am »
Solved the problem THANKS!

2
Graphics / White sprite
« on: May 31, 2012, 09:43:00 pm »
Okay, im having this problem and don't quite know how to fix it.

I have a class that implements/extends the class Sprite.
class Background: public Sprite {
public:
        Background();
        virtual ~Background();
};
Then in the constructor I got it like this:
Background::Background() {
        Image image;
        image.LoadFromFile("Sprites/BitRed.png");
        SetImage(image);
}

And I'm using it like this:

Background sprite;
        win.draw(sprite);

But I'm always getting white box in the same size as the image without anything else.
Can someone please tell me how to  fix it or give me an example usage.

Thanks!

3
General / Re: SFML gets terminated right away?
« on: May 23, 2012, 09:21:07 am »
I know right. Thanks for all your help Laurent and others contributors.

4
General / Re: SFML gets terminated right away?
« on: May 22, 2012, 04:57:57 pm »
It is found but only if i start it thru eclipse. Now i copyed the sfml-system.dll to the folder where executable file is and ran it by double clicking on it. It worked, i tested on eclipse while the dll was in the same folder and again it worked. Soo is this the only option, to put the dll's into the same folder as executable, or can i load them from a different folder?

5
General / Re: SFML gets terminated right away?
« on: May 22, 2012, 04:26:27 pm »
I had many brakepoints and use the built-in debugger, but still it just starts and terminates instantly.
Also as u suggested I only used sfml-system link, but that did not work aswell. If u want to u can see the situation on my computer, check ur PM for details.

6
General / Re: SFML gets terminated right away?
« on: May 22, 2012, 02:31:46 pm »
In Eclipse, console is always activated, im trying to run it thru the debugger, so that would be no. And im linking this three:

sfml-graphics-d
sfml-window-d
sfml-system-d

In the exact order as posted here. If u want u can try Eclipse C/C++ and add it yourself. You can get it here: http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr2.

7
General / Re: SFML gets terminated right away?
« on: May 22, 2012, 10:30:29 am »
Im quite experienced with c and a bit less with c++, the problem is the program never actually starts, it builds and terminates instantly., i have "system("PAUSE"); in the code, so it should stop for me to press a key, but this option never appears.

8
General / Re: SMFL gets terminated right away?
« on: May 21, 2012, 11:24:23 pm »
BUMP

9
General / Re: SMFL gets terminated right away?
« on: May 19, 2012, 11:13:48 pm »
BUMP, I really need help with this.

10
General / Re: SMFL gets terminated right away?
« on: May 18, 2012, 07:00:51 pm »
I tried, this is what i tried:
http://screensnapr.com/v/V2of0J.png

When I ran that it did the exact same thing. If I commented the Clock stuff(http://screensnapr.com/v/sxZZr3.png), it ran as it should, but when its uncommented it doesent print anything. Even if it terminates it should leave it open for me to click/view output.

EDIT:

Here, the "console printout":

http://screensnapr.com/v/6iNCsW.png

11
General / SFML gets terminated right away?
« on: May 18, 2012, 06:52:46 pm »
Okay, I'm new to this and firts thing I encountered is this. No mater what sample program I choose, it never runs as it should.

I'm using Eclipse C/C++ CDT and SFML 1.6. And for the compiler im using mingW.

Here are my settings in Eclipse C++ :

http://screensnapr.com/v/rt2Spy.png
http://screensnapr.com/v/oqPWxg.png
http://screensnapr.com/v/31mNQT.png

And here is the example i tried:

Source file:
http://screensnapr.com/v/8nv3tn.png

Header file:
http://screensnapr.com/v/0uoX3u.png

And after I run the program it immediatly does this:
http://screensnapr.com/v/drKR2b.png

Id appreciate any help. Thanks !

Pages: [1]