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

Pages: [1]
1
DotNet / RenderWindow stops drawing
« on: December 06, 2013, 03:11:05 am »
A have a List<Sprite> that it's used to draw on the main RenderWindow object. Currently, this list holds 2 sprite and I call a window.Draw(sprite) for each one. Also, they are big as the RenderWindow object in width and height.


public void Draw(RenderWindow window)
{
  foreach (Sprite sprite in currentArea.AreaSprites)
  {
     window.Draw(sprite);   
   }
}


So far so good, until this happens after a couple of seconds, for no apparent reason:


Since the guy continues running, I though that the sprites are having some problems.
The only clue that I have was an AccessViolationException, something that I couldn't reproduce later and that was thrown right after the problem above occurred. The stack trace had something about a thread being started, in root, and I don't know if it have something to do.

I'm curious if all SFML calls are thread safe, since it seems to be locking the resource memory from me.
And also, how many times is it safe to call the Draw() method?

Sorry for being asking, I didn't found anything related on the forum.

2
SFML projects / Tmx C# Loader for SFML
« on: October 02, 2013, 04:38:46 am »
Hello!

I would like to share with the SFML community the project I've been working for the past week.
It's a library for C# project that makes use of both Tiled and SFML.

This project carries the following goals:
  • Load a .tmx file (what Tiled uses to save/load maps) in a fast and reliable way.
  • Organize data in an intuitive way.
  • Make it simple as possible for use in projects.

Important: the library right now only accepts .tmx formats with layers configured for CSV.

It can be used as a general-purpose library (in other words, with another frameworks), but I'm trying to make it even simpler for SFML users, so you can make your tiles and have each layer build as a SFML Sprite for you. Not much, it's really the only specialty right now. However, I hope to have more ideas as the project evolves and it's free to anyone to contribute.  ;)

Also, builds for Linux and Mac throught Mono is something I will look forward to after it turns in a solid release.

If you are interested, check the GitHub project on https://github.com/vncastanheira/TmxCSLoader_SFML.
There's a How-To Guide if you want to set up in your project and test it https://github.com/vncastanheira/TmxCSLoader_SFML/wiki/How-to-use-Tmx-C%23-Loader-for-SFML.

Windows beta release is on https://docs.google.com/file/d/0B96ycxJN-06jQXZ2clh6bDBrUkU/edit?usp=sharing.

I hope that can help a lot of people.
Thanks!

Pages: [1]