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

Pages: [1]
1
DotNet / SFML.Net 2.0 and Mono: Getting Started Guide
« on: March 30, 2012, 07:31:07 am »
I spent most of yesterday getting SFML.Net 2.0 to work with Mono on Linux machines, and figured I might as well write down my process to get it to work. Might not be a HUGE audience for this, but whatever, I had fun writing it.

http://scriptogr.am/mkosler/post/sfml.net-2.0-and-mono

Update: new site, and an explanation on how to skip the CSFML and SFML++ compilation.

2
DotNet / Getting dt in SFML.Net 2.0
« on: March 29, 2012, 11:29:37 pm »
I seem to remember (though may be mistaken) that the delta time variable was accessed through a RenderWindow instance, yet I don't seem to see it there anymore. In the SFML 2.0 documentation, you get this from a Clock instance, but that also doesn't seem to exist in SFML.Net (since that comes from the System module, which isn't included in SFML.Net). Where would I get dt in SFML.Net 2.0?

3
DotNet / Building the docs (.shfbproj) on Linux?
« on: March 29, 2012, 05:52:06 pm »
I am having a hard time finding a way to build the SFML.Net 2.0 documentation on Linux. MonoDevelop doesn't seem to recognize it as a project file, and random Google searches don't seem to produce much. So, two questions:

  • Is there a way to build the documentation on Linux?
  • If not, does someone have the current release's (the last commit on GitHub was two days ago) built documentation?


I understand it's almost the exact same as the C++ documentation, but if it is feasible for me to get the .Net version, then I'd prefer that.

4
C / Error during build of CSFML 2.0 on Lubuntu
« on: March 29, 2012, 02:29:59 am »
Code: [Select]
[ 61%] Building CXX object src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o
/home/mkosler/Downloads/CSFML/src/SFML/Graphics/RenderTexture.cpp: In function ‘sfVector2f sfRenderTexture_convertCoords(const sfRenderTexture*, sfVector2i, const sfView*)’:
/home/mkosler/Downloads/CSFML/src/SFML/Graphics/RenderTexture.cpp:151:103: error: no matching function for call to ‘sf::RenderTexture::convertCoords(sf::Vector2i, const sf::View&) const’
/home/mkosler/Downloads/CSFML/src/SFML/Graphics/RenderTexture.cpp:151:103: note: candidates are:
/usr/local/include/SFML/Graphics/RenderTarget.hpp:153:14: note: sf::Vector2f sf::RenderTarget::convertCoords(unsigned int, unsigned int) const
/usr/local/include/SFML/Graphics/RenderTarget.hpp:153:14: note:   no known conversion for argument 1 from ‘sf::Vector2i {aka sf::Vector2<int>}’ to ‘unsigned int’
/usr/local/include/SFML/Graphics/RenderTarget.hpp:179:14: note: sf::Vector2f sf::RenderTarget::convertCoords(unsigned int, unsigned int, const sf::View&) const
/usr/local/include/SFML/Graphics/RenderTarget.hpp:179:14: note:   candidate expects 3 arguments, 2 provided
/home/mkosler/Downloads/CSFML/src/SFML/Graphics/RenderTexture.cpp:153:85: error: no matching function for call to ‘sf::RenderTexture::convertCoords(sf::Vector2i) const’
/home/mkosler/Downloads/CSFML/src/SFML/Graphics/RenderTexture.cpp:153:85: note: candidates are:
/usr/local/include/SFML/Graphics/RenderTarget.hpp:153:14: note: sf::Vector2f sf::RenderTarget::convertCoords(unsigned int, unsigned int) const
/usr/local/include/SFML/Graphics/RenderTarget.hpp:153:14: note:   candidate expects 2 arguments, 1 provided
/usr/local/include/SFML/Graphics/RenderTarget.hpp:179:14: note: sf::Vector2f sf::RenderTarget::convertCoords(unsigned int, unsigned int, const sf::View&) const
/usr/local/include/SFML/Graphics/RenderTarget.hpp:179:14: note:   candidate expects 3 arguments, 1 provided
make[2]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o] Error 1
make[1]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/all] Error 2
make: *** [all] Error 2

Trying to get SFML.Net 2.0 to work with Mono, and it seems I need the libcsfml files to do so, which means I need to build CSFML. Ran into this error while building.

5
DotNet / Scripting with C#/Mono...in C#/Mono
« on: March 01, 2012, 09:48:34 pm »
Maybe I am missing something obvious, but there doesn't seem to be a lot of information about using C#/Mono as a scripting language for projects already written in C#/Mono. There is plenty of information on how to do it in a C++ project, and there are some rare examples of doing it inside C#/Mono, but I have yet to get one of them to build successfully on my machine.

The two options I seem to think are viable are using the Mono.CSharp Evaluator class, or through the dynamic type. However, all the examples using the Evaluator have either failed, or only loaded a single statement at a time, and I am unsure that using the dynamic type would correctly cast a SFML.Vector2 (plus I am unsure if Mono currently supports the dynamic type.)

Even if there aren't any straight up tutorials out there, are they any examples out there of this that I could look through the source code of?

Thanks in advance.

6
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.

Pages: [1]