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

Pages: 1 [2]
16
DotNet / Drawable Center not updating with movement
« on: January 22, 2012, 05:21:14 pm »
Sweet.

17
DotNet / Drawable Center not updating with movement
« on: January 22, 2012, 05:11:13 pm »
Interesting, and a bit confusing for a reader. I get what you mean, but "center" doesn't really equate to "upper-left" to me. A center isn't a arbitrary location, it's the center of the object. I would have thought "origin" would be more appropriate, since you are probably using that point the manipulate the image in its local space or rotate the image around that point. Maybe it's just a translation thing.

18
DotNet / Drawable Center not updating with movement
« on: January 22, 2012, 07:49:09 am »
I don't know if this is intentional or not (but I doubt it is), but when you update the position of a Drawable, the rest of the position relative variables (specifically Center) do not update accordingly. It seems in the C++ documentation that there is a Move method that may do this part for you, but at least in SFML.NET 1.6 it doesn't seem to exist.

19
DotNet / SFML.Net with Mono
« on: January 21, 2012, 04:28:44 pm »
Necro'ing an older thread, but I just started with the .NET bindings using Mono (EDIT: on a Linux machine) for SFML 1.6, and after maybe 3 hours of back and forth, I ended up doing this to get it to work.

If you have Aptitude (using any Ubuntu distribution), the libcsfml shared libraries are already compiled and uploaded. Just:

Code: [Select]

sudo apt-get install libcsfml-audio1.6
sudo apt-get install libcsfml-graphics1.6
sudo apt-get install libcsfml-network1.6
sudo apt-get install libcsfml-system1.6
sudo apt-get install libcsfml-window1.6


You may only need audio/graphics/window, but get them all just in case.

Then, following the advice from this thread, copy the libcsfml shared libraries from /usr/lib/ into the directory with your .NET executable, make dll.config files for each of the sfmlnet DLLs, which will tell the sfmlnet DLL to "look at" the shared libraries when it references them:

For example, sfmlnet-graphics.dll.config looks like this:
Code: [Select]

<configuration>
<dllmap dll="csfml-window" target="libcsfml-window.so.1.6">
<dllmap dll="csfml-graphics" target="libcsfml-graphics.so.1.6">
</configuration>


Hopefully I didn't forget something that magically helped it along its way, but I'm up and running now.

Pages: 1 [2]