Use normalized texture coordinates

This commit is contained in:
Sylvain 2021-03-17 09:58:49 +01:00 committed by Sylvain Becker
parent 5828cc415a
commit f73c1eff10
7 changed files with 13 additions and 19 deletions

View file

@ -144,8 +144,7 @@ typedef struct SDL_Vertex
{
SDL_FPoint position; /**< Vertex position, in SDL_Renderer coordinates */
SDL_Color color; /**< Vertex color */
SDL_FPoint tex_coord; /**< Texture coordinates (0..texture width, 0..texture height),
if needed */
SDL_FPoint tex_coord; /**< Normalized texture coordinates, if needed */
} SDL_Vertex;
@ -1472,7 +1471,6 @@ extern DECLSPEC int SDLCALL SDL_RenderGeometry(SDL_Renderer *renderer,
SDL_Vertex *vertices, int num_vertices,
int *indices, int num_indices);
/**
* Read pixels from the current rendering target to an array of pixels.
*