Vertex

D struct that wraps SDL_Vertex (from SDL 2.0.18) containing 2D vertex information

dsdl2.Vertex stores the position of the vertex, color modulation (as well as alpha), and mapped texture texCoordinate.

Constructors

this
this()
Undocumented in source.
this
this(SDL_Vertex sdlVertex)

Constructs a dsdl2.Vertex from a vanilla SDL_Vertex from bindbc-sdl

this
this(FPoint position, Color color, FPoint texCoord)

Constructs a dsdl2.Vertex by feeding in the position, color, and texture coordinate

Members

Functions

color
inout(Color) color()

Proxy to the color of the dsdl2.Vertex

position
inout(FPoint) position()

Proxy to the position of the dsdl2.Vertex

texCoord
inout(FPoint) texCoord()

Proxy to the texture coordinate of the dsdl2.Vertex

texX
inout(float) texX()

Proxy to the X texture coordinate of the dsdl2.Vertex

texY
inout(float) texY()

Proxy to the Y texture coordinate of the dsdl2.Vertex

toString
string toString()

Formats the dsdl2.Vertex into its construction representation: "dsdl2.Vertex(<position>, <color>, <texCoord>)"

x
inout(float) x()

Proxy to the X position of the dsdl2.Vertex

y
inout(float) y()

Proxy to the Y position of the dsdl2.Vertex

Variables

sdlVertex
SDL_Vertex sdlVertex;

Internal SDL_Vertex struct

Meta