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

Pages: [1]
1
General discussions / Re: SFML 2 and its new website released
« on: April 29, 2013, 09:46:49 pm »
Félicitations! It's really good! Suddenly the forum looks a bit old in comparison (with the old logo) but that's a small thing compared to the excellent work you've done!

2
General discussions / Re: A new logo for SFML
« on: April 22, 2013, 08:21:20 pm »

3
General discussions / Re: A new logo for SFML
« on: April 17, 2013, 06:16:05 pm »
My opinion:

The off/on button was good. The power button reminder me of multimedia equipment, and that is somewhat related to the multimedia aspect of SFML.

The arrow only means speed and violence/hunting/war. The link with SFML is really small. And it's not as good looking really.


4
General discussions / Re: Unofficial Nightly Builds
« on: April 02, 2013, 09:11:39 pm »
I followed the tutorial here http://www.mjbshaw.com/2013/02/building-sfml-2-with-c11-on-os-x.html and it almost worked, except when I launch the Xcode Template "SFML App" I have a build error saying:

ditto: can't get real path for source
couldn't copy /Library/Frameworks/freetype.framework to /Users/vanpet/Library/Developer/Xcode/DerivedData/engine-aflrprlylygpwtcgjaleylrwvizo/Build/Products/Debug/engine.app/Contents/Frameworks/freetype.framework
Command /bin/sh failed with exit code 2

Any idea what is happening?

5
Graphics / Re: Drawing a std::vector<sf::Vector2f> like a VertexArray
« on: October 30, 2012, 08:06:20 pm »
Thanks!

6
Graphics / Drawing a std::vector<sf::Vector2f> like a VertexArray
« on: October 30, 2012, 07:24:32 pm »
I'm new to graphic programming in general, so my questions may seem stupid, please excuse me, but I swear I'm doing my best to read and understand most of the documentation (-> not easy for me)!

Until now, I've played with VertexArray to draw complex polygons, and it was fine. But now, I need to edit these shapes (for example, the user must be able to add a point between to other points), and I don't think I can use VertexArray to insert a point in the middle because it has only push_back method at the end of the array.

So, now I made my own class Polygon and I store the points in a vector<sf::Vector2f>

In my class Polygon, I inherited Drawable, and I want to make a virtual draw function to handle the drawing of my Polygon...

virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const;

Unfortunately, I have no idea how to implement this function. I don't know how to go from my vector to a drawable object like a vertexArray.

Foolishly, I tried to use low level OpenGL instructions, but it was a big mess and I guess I feel more confortable staying in the SFML world for the moment.

Can someone please push me in the right direction? I suppose the answer is easy for you!

Thanks in advance!

Pages: [1]
anything