CSFML - C binding of the Simple and Fast Multimedia Library

CSFML 3.0.0
Loading...
Searching...
No Matches
Enumerations
PrimitiveType.h File Reference
`#include <CSFML/Graphics/Export.h>`

Go to the source code of this file.

## Enumerations
enum | sfPrimitiveType { sfPoints , sfLines , sfLineStrip , sfTriangles , sfTriangleStrip , sfTriangleFan }
| Types of primitives that an sfVertexArray can render. More...

## Enumeration Type Documentation

## ◆ sfPrimitiveType

enum sfPrimitiveType

Types of primitives that an sfVertexArray can render.

Points and lines have no area, therefore their thickness will always be 1 pixel, regardless the current transform and view.

Enumerator
sfPoints | List of individual points.
sfLines | List of individual lines.
sfLineStrip | List of connected lines, a point uses the previous point to form a line.
sfTriangles | List of individual triangles.
sfTriangleStrip | List of connected triangles, a point uses the two previous points to form a triangle.
sfTriangleFan | List of connected triangles, a point uses the common center and the previous point to form a triangle.

Definition at line 41 of file PrimitiveType.h.