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

Pages: [1]
1
Graphics / Re: Drawing convex shapes using a vector of Vector2f's
« on: January 04, 2014, 02:42:29 pm »
I mean , adding a point to a vector of vertices would be as simple as
vertices.push_back(point);
while adding a point to a ConvexShape means i have to raise the point count and then add the point (i believe that's how it works).

2
Graphics / Re: Drawing convex shapes using a vector of Vector2f's
« on: January 04, 2014, 02:35:41 pm »
Using a vertex could work , but losing the transformations .. i don't think so :)

The fact that i have to keep my points in a ConvexShape instead of an vector really annoys me because i have to keep track of it's point count .. Since i can't find a better alternative , i decided i'll only keep the shape. Thanks a lot :3

3
Graphics / Drawing convex shapes using a vector of Vector2f's
« on: January 04, 2014, 02:07:10 pm »
So i'm working on my game engine using SFML and i'd like to be able to draw a convex shape just by knowing it's points, so my object class would not need to have both a ConvexShape and a vector of points..
Is there any way i could do that with minimum effort ?

Thanks :D

Pages: [1]
anything