Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: particules  (Read 10601 times)

0 Members and 1 Guest are viewing this topic.

dnob700

  • Newbie
  • *
  • Posts: 8
    • View Profile
particules
« on: September 05, 2007, 01:34:53 am »
Hello,

Particules is a software solving the thomson's problem : it finds the "best" way to place N points at the surface of a sphere.
It's using OpenGL to render images of the solution. Image can be seen at the page : http://particules.sectionpc.info/#images

To handle the creation of a window and the mouse events to move around the image, I used direct X (not DirectX, but just the X library) under Linux and a home-made library under Windows (advio2, which is quiet similar to the window and graphics part of SFML).

The problem is that I do not maintain the windows library any more, and my X code is broken on recent systems. So as soon as I discovered SFML I tried to use it to build a portable graphics system for my app.

The system dependant part of my application is reather small (roughly 200 lines for a 12K lines program) and it took me only one or two hour to learn how to use the window part of SFML and to rewrite my code to use it.

And guess what ? it's working wonderfully ! the code I wrote is much simpler than what I used with X before (but a little longer than what I used under windows because I needed to write a message handler function for SFML, while advio2 did this for me).

On the webpage I gave earlier there is not already the SFML version of the program because I still got a few problem with it, but it will soon be available.

To conclude, I will just give two "gadget" functions I consider missing in the library (or that I missed the rewrite my app with all its functionalities) :
- the possibility the change the caption of a sfWindow after its creation
- the possibility to give an icon to a sfWindow

SFML is a really good library, I was waiting for something like that for years.

thank you.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
particules
« Reply #1 on: September 05, 2007, 09:02:06 am »
Nice project :)

Quote
To conclude, I will just give two "gadget" functions I consider missing in the library (or that I missed the rewrite my app with all its functionalities) :
- the possibility the change the caption of a sfWindow after its creation
- the possibility to give an icon to a sfWindow

As I already said to other people asking for more windows features, SFML is not a GUI library and tries to keep a clean and simple interface.
But I'll think about these two features, it could be useful for a lot of people.

Thanks
Laurent Gomila - SFML developer

 

anything