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
@@ -132,6 +132,7 @@ int main(int argc, char *argv[])
|
||||
quit(2);
|
||||
}
|
||||
SDL_GetTextureSize(drawstate->sprite, &drawstate->sprite_rect.w, &drawstate->sprite_rect.h);
|
||||
SDL_SetTextureScaleMode(drawstate->sprite, SDL_SCALEMODE_PIXELART);
|
||||
drawstate->scale_direction = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user