summaryrefslogtreecommitdiff
path: root/include/SDL_hints.h
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2011-03-13 11:18:35 -0700
committerSam Lantinga <slouken@libsdl.org>2011-03-13 11:18:35 -0700
commita19e258730d9bc7112fe3f7587087ccf562c5ba0 (patch)
treee2f4037e48c8aabdfa19bb4880a75cdd03986f43 /include/SDL_hints.h
parentfbc49beee3c04b087af0b98ecf3fe486b695f343 (diff)
Added the SDL_HINT_RENDER_SCALE_QUALITY hint, which defaults to nearest pixel sampling.
Diffstat (limited to 'include/SDL_hints.h')
-rw-r--r--include/SDL_hints.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/SDL_hints.h b/include/SDL_hints.h
index 8fa6fb2d..8f228863 100644
--- a/include/SDL_hints.h
+++ b/include/SDL_hints.h
@@ -98,6 +98,18 @@ extern "C" {
#define SDL_HINT_RENDER_OPENGL_SHADERS "SDL_RENDER_OPENGL_SHADERS"
/**
+ * \brief A variable controlling the scaling quality
+ *
+ * This variable can be set to the following values:
+ * "0" or "nearest" - Nearest pixel sampling
+ * "1" or "linear" - Linear filtering (supported by OpenGL and Direct3D)
+ * "2" or "best" - Anisotropic filtering (supported by Direct3D)
+ *
+ * By default nearest pixel sampling is used
+ */
+#define SDL_HINT_RENDER_SCALE_QUALITY "SDL_RENDER_SCALE_QUALITY"
+
+/**
* \brief A variable controlling whether updates to the SDL 1.2 screen surface should be synchronized with the vertical refresh, to avoid tearing.
*
* This variable can be set to the following values: