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

Pages: [1]
1
General / Problem after compiling SFML2
« on: November 25, 2011, 04:26:21 am »
Okay, so I decided to compile and use SFML2 on the Windows side of my laptop. I followed the guide and everything turns out fine, except for one thing, no include folder is generated. Am I missing anything obvious here? The lib folder and its subsequent files are compiled fine.

EDIT: I think I solved it. I'm going to use the include folder that comes with the git pull.

2
General / Shared Libraries problem
« on: October 15, 2011, 03:56:30 pm »
Apparently, the lib files weren't installed to /usr/lib, but to /usr/local/lib. Just did a simple copy paste as root and ran ldconfig -v as root. That seems to have fixed the problem.

3
General / Shared Libraries problem
« on: October 15, 2011, 04:04:31 am »
Okay, so I did a fresh install of Xubuntu 11.10, and when I try to run a run a simple program I get this error.


./a.out: error while loading shared libraries: libsfml-graphics.so.2: cannot open shared object file: No such file or directory

Everything compiles fine, so uh. Whats going on?

Oh, here's the code if it helps
Code: [Select]

#include <SFML/Graphics.hpp>

int main()
{
sf::RenderWindow window(sf::VideoMode(854, 480), "cos(x), the next Nullular Grapher!");

int x = 0;
int y = 0;

sf::Shape rect = sf::Shape::Rectangle(1, 1, 1, 1, sf::Color::Red);

while (window.IsOpened())
{
sf::Event event;
while (window.PollEvent(event))
{
if (event.Type == sf::Event::Closed)
{
window.Close();
}
}

window.Clear();

rect.SetPosition(1, 1);

window.Draw(rect);

window.Display();
}

return EXIT_SUCCESS;
}
[/code]

4
General discussions / Main differences between SFML2 and 1.6
« on: February 10, 2011, 07:22:09 pm »
So I've been thinking of switching to SFML2 because of the RenderImage class. What are the main changes and such between the two versions that I should look out for? If a topic has already been made pointing these out, feel free to redirect me to it.

5
Graphics / [SOLVED] Scrolling a bar.
« on: January 29, 2011, 04:40:00 pm »
Alright, now I get what your saying! I'll try fiddling with it some more.

EDIT: SOLVED. Thanks for the help Hiura!

6
Graphics / [SOLVED] Scrolling a bar.
« on: January 29, 2011, 02:49:03 am »
I get what you're saying in the first sentance, but your second sentance just confuses me. I get that you suggest that I should just have the Bar.Move, but after that I can no longer follow.

7
Graphics / [SOLVED] Scrolling a bar.
« on: January 28, 2011, 10:31:26 pm »
Hello everybody, I come with a simple question. I have a sprite that I want to scroll down to a certain part of the screen, and then stop. My problem is, that when I press the key to trigger the scrolling, it only does the action once. Here is the relevant code.

Code: [Select]
int moveBar(sf::Shape &Bar, sf::Clock &clockMovement, float &yRatio, float &mDelay, int &i)
{
while ( i != (yRatio/10) && (clockMovement.GetElapsedTime() > mDelay))
{
Bar.Move(0, 1);
i++;
clockMovement.Reset();
}
}


[/code]

Pages: [1]
anything