* Changes the texture used to draw the polygon. * @param tex Texture sprite number. */
| 167 | * @param tex Texture sprite number. |
| 168 | */ |
| 169 | void Polygon::setTexture(int tex) |
| 170 | { |
| 171 | _texture = tex; |
| 172 | } |
| 173 | |
| 174 | /** |
| 175 | * Returns the number of points (vertexes) that make up the polygon. |