Struct Vertex
D struct that wraps SDL_Vertex (from SDL 2.0.18) containing 2D vertex information
dsdl.Vertex stores the position of the vertex, color modulation (as well as alpha), and mapped texture
texCoordinate.
Constructors
| Name | Description |
this
(sdlVertex)
|
Constructs a dsdl.Vertex from a vanilla SDL_Vertex from bindbc-sdl
|
this
(position, color, texCoord)
|
Constructs a dsdl.Vertex by feeding in the position, color, and texture coordinate
|
Fields
| Name | Type | Description |
sdlVertex
|
sdl.render.SDL_Vertex | Internal SDL_Vertex struct
|
Properties
| Name | Type | Description |
color[get]
|
inout(Color) | Proxy to the color of the dsdl.Vertex
|
position[get]
|
inout(FPoint) | Proxy to the position of the dsdl.Vertex
|
texCoord[get]
|
inout(FPoint) | Proxy to the texture coordinate of the dsdl.Vertex
|
texX[get]
|
inout(float) | Proxy to the X texture coordinate of the dsdl.Vertex
|
texY[get]
|
inout(float) | Proxy to the Y texture coordinate of the dsdl.Vertex
|
x[get]
|
inout(float) | Proxy to the X position of the dsdl.Vertex
|
y[get]
|
inout(float) | Proxy to the Y position of the dsdl.Vertex
|
Methods
| Name | Description |
toString
()
|
Formats the dsdl.Vertex into its construction representation:
"dsdl.Vertex(<position>, <color>, <texCoord>)"
|