Added SDL_SCALEMODE_PIXELART
This is based on the algorithm presented by t3ssel8r: https://www.youtube.com/watch?v=d6tp43wZqps
This commit is contained in:
1 parent
853375da61
commit
3e9e22f17d
63 files changed
+15968
-13125
No files matched your search
@@ -83,8 +83,9 @@ typedef Uint32 SDL_SurfaceFlags;
|
||||
typedef enum SDL_ScaleMode
|
||||
{
|
||||
SDL_SCALEMODE_INVALID = -1,
|
||||
SDL_SCALEMODE_NEAREST, /**< nearest pixel sampling */
|
||||
SDL_SCALEMODE_LINEAR /**< linear filtering */
|
||||
SDL_SCALEMODE_NEAREST, /**< nearest pixel sampling */
|
||||
SDL_SCALEMODE_LINEAR, /**< linear filtering */
|
||||
SDL_SCALEMODE_PIXELART /**< nearest pixel sampling with improved scaling for pixel art */
|
||||
} SDL_ScaleMode;
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user