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

Pages: [1]
1
General discussions / Re: Wrong numer of verteces in vertex array
« on: November 15, 2017, 10:09:38 pm »
so it's an undefined behavior and I have to avoid it in every case.

Thank you.

2
General discussions / Wrong numer of verteces in vertex array
« on: November 15, 2017, 09:22:32 pm »
I'm reading the tutorial on sf::VertexArray ( https://www.sfml-dev.org/tutorials/2.4/graphics-vertex-array.php ) and I don't understand what happens if I try to draw a vertex array with a wrong number of vertices for his primitive type. 
For example: what could happen if I drew a vertex array of 5 vertices using the sf::Lines primitive?

3
Graphics / Re: Hexagonal tile map
« on: February 11, 2017, 09:04:43 pm »
Ok. I found the way to do that with Triangles. Thanks for your answer.

4
Graphics / Hexagonal tile map
« on: February 10, 2017, 10:38:51 pm »
Hi all,

I'm new with SFML and I'm trying to learn how to make an hexagonal tile map.
I can't understand what primitive type I should use to draw a hexagon?

I've already thought to use a series of Triangle but if I do that I won't be able to set the correct texture to the tile.

Someone can help me?

Pages: [1]
anything