mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 17:28:28 +00:00
Use normalized texture coordinates
This commit is contained in:
parent
5828cc415a
commit
f73c1eff10
7 changed files with 13 additions and 19 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue