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

Pages: 1 [2]
16
System / Passing variables to ThreadFunction()
« on: December 17, 2011, 05:21:48 pm »
What if I need to pass a variable into the thread function? How can I do that? It's not explained in the tutorial on the SFML website. Two Sprite variables need to be passed into my thread function, so how do I declare that function?
WIll it be void ThreadFunction(sf::Sprite Sprite, sf::Sprite Sprite2);
I keep getting an error, and what is the void *UserData for?
And how do I later create the thread?
In the tutorial it just says:
sf::Thread Thread(&ThreadFunction)
?

17
General / SFML 1.6 in visual C++ 2010
« on: November 28, 2011, 06:20:45 pm »
Hi. I'm new to sfml. I followed a few tutorials that I did in code::blocks. But here's the thing. I just can't work in code::blocks , I'm so used to VC++.
Now I need someone to tell me how to install SFML 1.6 in visual C++ 2010.
I tried it a few times and I keep getting linker errors. Now could any of you explain to me how I can do this or at least direct me to a good tutorial on this topic.

Pages: 1 [2]
anything