render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture.
parent
95066ce2a0
commit
82f2c4d581
|
@ -651,7 +651,7 @@ extern DECLSPEC SDL_PropertiesID SDLCALL SDL_GetTextureProperties(SDL_Texture *t
|
|||
* \sa SDL_CreateTextureFromSurface
|
||||
* \sa SDL_CreateTextureWithProperties
|
||||
*/
|
||||
extern DECLSPEC SDL_Renderer *SDLCALL SDL_GetTextureRenderer(SDL_Texture *texture);
|
||||
extern DECLSPEC SDL_Renderer *SDLCALL SDL_GetRendererFromTexture(SDL_Texture *texture);
|
||||
|
||||
/**
|
||||
* Query the attributes of a texture.
|
||||
|
|
|
@ -961,7 +961,7 @@ SDL3_0.0.0 {
|
|||
SDL_wcsnstr;
|
||||
SDL_SyncWindow;
|
||||
SDL_GetGamepadSteamHandle;
|
||||
SDL_GetTextureRenderer;
|
||||
SDL_GetRendererFromTexture;
|
||||
# extra symbols go here (don't modify this line)
|
||||
local: *;
|
||||
};
|
||||
|
|
|
@ -986,4 +986,4 @@
|
|||
#define SDL_wcsnstr SDL_wcsnstr_REAL
|
||||
#define SDL_SyncWindow SDL_SyncWindow_REAL
|
||||
#define SDL_GetGamepadSteamHandle SDL_GetGamepadSteamHandle_REAL
|
||||
#define SDL_GetTextureRenderer SDL_GetTextureRenderer_REAL
|
||||
#define SDL_GetRendererFromTexture SDL_GetRendererFromTexture_REAL
|
||||
|
|
|
@ -1011,4 +1011,4 @@ SDL_DYNAPI_PROC(char*,SDL_strnstr,(const char *a, const char *b, size_t c),(a,b,
|
|||
SDL_DYNAPI_PROC(wchar_t*,SDL_wcsnstr,(const wchar_t *a, const wchar_t *b, size_t c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_SyncWindow,(SDL_Window *a),(a),return)
|
||||
SDL_DYNAPI_PROC(Uint64,SDL_GetGamepadSteamHandle,(SDL_Gamepad *a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_Renderer*,SDL_GetTextureRenderer,(SDL_Texture *a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_Renderer*,SDL_GetRendererFromTexture,(SDL_Texture *a),(a),return)
|
||||
|
|
|
@ -1396,7 +1396,7 @@ SDL_Texture *SDL_CreateTextureFromSurface(SDL_Renderer *renderer, SDL_Surface *s
|
|||
return texture;
|
||||
}
|
||||
|
||||
SDL_Renderer *SDL_GetTextureRenderer(SDL_Texture *texture)
|
||||
SDL_Renderer *SDL_GetRendererFromTexture(SDL_Texture *texture)
|
||||
{
|
||||
CHECK_TEXTURE_MAGIC(texture, NULL);
|
||||
return texture->renderer;
|
||||
|
|
Loading…
Reference in New Issue