mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 01:16:26 +00:00
Removed SDL_HINT_RENDER_SCALE_QUALITY
Textures now default to linear filtering, use SDL_SetTextureScaleMode(texture, SDL_SCALEMODE_NEAREST) if you want nearest pixel mode instead.
This commit is contained in:
@@ -1776,18 +1776,6 @@ extern "C" {
|
||||
*/
|
||||
#define SDL_HINT_RENDER_PS2_DYNAMIC_VSYNC "SDL_RENDER_PS2_DYNAMIC_VSYNC"
|
||||
|
||||
/**
|
||||
* A variable controlling texture scaling quality.
|
||||
*
|
||||
* The variable can be set to the following values:
|
||||
* "0" or "nearest" - Nearest pixel sampling. (default)
|
||||
* "1" or "linear" - Linear filtering. (supported by OpenGL and Direct3D)
|
||||
* "2" or "best" - Currently this is the same as "linear".
|
||||
*
|
||||
* This hint should be set before creating a texture.
|
||||
*/
|
||||
#define SDL_HINT_RENDER_SCALE_QUALITY "SDL_RENDER_SCALE_QUALITY"
|
||||
|
||||
/**
|
||||
* A variable controlling whether updates to the SDL screen surface should be synchronized with the vertical refresh, to avoid tearing.
|
||||
*
|
||||
|
@@ -913,6 +913,8 @@ extern DECLSPEC int SDLCALL SDL_GetTextureBlendMode(SDL_Texture *texture, SDL_Bl
|
||||
/**
|
||||
* Set the scale mode used for texture scale operations.
|
||||
*
|
||||
* The default texture scale mode is SDL_SCALEMODE_LINEAR.
|
||||
*
|
||||
* If the scale mode is not supported, the closest supported mode is chosen.
|
||||
*
|
||||
* \param texture The texture to update.
|
||||
|
Reference in New Issue
Block a user