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

Pages: [1]
1
General / Using SFML with C, not C++
« on: April 22, 2019, 10:20:27 pm »
I know that via the CSFML page: https://www.sfml-dev.org/download/csfml/ there are no docs on the SFML api for C, as it's essentially the same as the C++ one.

However, are there any resources out there for using SFML with C? I need some help...

For example, what if I want to make the example provided here https://www.sfml-dev.org/tutorials/2.5/start-linux.php in C on a Mac?

I don't want to use XCode, and don't want to use C++, only C.

1) First, how would I translate the SFML "api" calls to valid calls in C? I can read C and C++, but not sure where I would access sf::CircleShape, for example, as obviously C doesn't have inheritance.

2) How would I build this with C?

Hopefully these questions make sense... sorry, a newbie here!

Thanks for the help.

2
General / Re: Can't get SFML to install properly
« on: November 08, 2018, 06:27:51 pm »
BrianD- thanks for the screenshot, I was having the same problem. Checking that worked.

I wonder what it is?

3
General / Re: Help automatically specifying LD_LIBRARY_PATH ?
« on: March 23, 2018, 12:33:37 am »
@Ceylo thank you so much! Super helpful!!!

4
General / Re: Help automatically specifying LD_LIBRARY_PATH ?
« on: March 19, 2018, 02:17:24 pm »
@Jonny Thank you!

That's great advice. I'll look into using cmake. Any advice / guides on using cmake in conjunction with Xcode for SFML?

5
General / Re: Help automatically specifying LD_LIBRARY_PATH ?
« on: March 13, 2018, 07:51:55 pm »
Gotcha- thanks for the reply! If nothing else, a shell script is a good idea, like you said!

So if I want to write a game, the only way to do it is through CodeBlocks on Windows and Xcode on OS X ?

If that's the case that's fine, I'm just trying to figure out if I have to use those tools or not. I'm very grateful SFML provides easy tutorials and works with the tools well on all main operating systems- that's huge, and it's amazing! I'm just talking about not using them for learning purposes.

Thanks for the help!

6
General / Help automatically specifying LD_LIBRARY_PATH ?
« on: March 13, 2018, 03:11:06 pm »
Hello! I'm new to SFML, and am learning how to use it with C++! It's super exciting, and I'm grateful there's a large community!

I did the SFML Mac OS X tutorial here https://www.sfml-dev.org/tutorials/2.4/start-osx.php, and then I just did the one for Linux here https://www.sfml-dev.org/tutorials/2.4/start-linux.php.

I did both on OS X. I like the idea of doing things by hand- not that Xcode is bad, but I am always trying to learn more about how things work under the hood. However, at the end of the linux tutorial, I couldn't run ./sfml-app on OS X, because I needed to do this step:



Once I did that (using only one & on OS X) it worked! But, what if I want to send a game I make to someone to play? I obviously want to share the game, but I don't want them to have to type that export command every time they want to run the game.

The Question:
How can I build the game and share it so that they don't have to type the export LD_LIBRARY_PATH... command? I just want them to be able to double click the .app file and go!


Thanks for the help!

Pages: [1]