RetroArch
Macros
Primitive type

Collection of primitive types that can be drawn by the GP. More...

Macros

#define GX_POINTS   0xB8
 
#define GX_LINES   0xA8
 
#define GX_LINESTRIP   0xB0
 
#define GX_TRIANGLES   0x90
 
#define GX_TRIANGLESTRIP   0x98
 
#define GX_TRIANGLEFAN   0xA0
 
#define GX_QUADS   0x80
 

Detailed Description

Collection of primitive types that can be drawn by the GP.

Note
Which type you use depends on your needs; however, performance can increase by using triangle strips or fans instead of discrete triangles.

Macro Definition Documentation

◆ GX_LINES

#define GX_LINES   0xA8

Draws a series of unconnected line segments. Each pair of vertices makes a line.

◆ GX_LINESTRIP

#define GX_LINESTRIP   0xB0

Draws a series of lines. Each vertex (besides the first) makes a line between it and the previous.

◆ GX_POINTS

#define GX_POINTS   0xB8

Draws a series of points. Each vertex is a single point.

◆ GX_QUADS

#define GX_QUADS   0x80

Draws a series of unconnected quads. Every four vertices completes a quad. Internally, each quad is translated into a pair of triangles.

◆ GX_TRIANGLEFAN

#define GX_TRIANGLEFAN   0xA0

Draws a single triangle fan. The first vertex is the "centerpoint". The second and third vertex complete the first triangle. Each subsequent vertex completes another triangle which shares a side with the previous triangle (except the first triangle) and has the centerpoint vertex as one of the vertices.

◆ GX_TRIANGLES

#define GX_TRIANGLES   0x90

Draws a series of unconnected triangles. Three vertices make a single triangle.

◆ GX_TRIANGLESTRIP

#define GX_TRIANGLESTRIP   0x98

Draws a series of triangles. Each triangle (besides the first) shares a side with the previous triangle. Each vertex (besides the first two) completes a triangle.