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.


Topics - 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 / 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]
anything