in C++ SDL, which methods or functions use SDL_VertexSolid as a parameter or as a result?
- User
in C++ SDL, which methods or functions use SDL_VertexSolid as a parameter or as a result?
- Assistant
As of my knowledge cutoff date in March 2023, SDL_VertexSolid is not an actual part of the SDL (Simple DirectMedia Layer) API. You may be referring to the concept of drawing solid objects or solid vertices in SDL, which can be done using various SDL functions related to rendering. However, there is no specific structure or function.
- User
sorry seems like it is a new added struct:
Vertex structure
Data Fields SDL_FPoint
position
Vertex position, in SDL_Renderer coordinates
SDL_Color
color
Vertex color
Related Structures SDL_Vertex
- Assistant
Apologies for the confusion earlier. It seems you were referring to the
SDL_Vertexstructure which is part of the SDL 2.0.18 or later versions. ThisSDL_Vertexstructure is used with functions that draw arbitrary shapes using vertices.The
SDL_Vertexstructure is typically used like this:cpp