SFML community forums

Help => Graphics => Topic started by: Plazmotech on December 22, 2012, 07:57:18 am

Title: When rendering a sprite, it's antialiased. I need it aliased. How can I do this?
Post by: Plazmotech on December 22, 2012, 07:57:18 am
Hi. I'm making a game that involves pixels. When I display a sprite, it becomes antialiased (all fuzzy). How can I make it aliased (sharp) like the actual .png is? Thanks!
Title: Re: When rendering a sprite, it's antialiased. I need it aliased. How can I do this?
Post by: Jebbs on December 22, 2012, 08:49:22 am
TextureName.setsmooth(false);

Edit:
Just wanted to let you know the documentation is very well done. You could have found this answer very easily there. :P
Title: Re: When rendering a sprite, it's antialiased. I need it aliased. How can I do this?
Post by: Nexus on December 22, 2012, 10:08:35 am
By the way, the smooth filter is disabled in SFML 2 by default. I recommend SFML version 2, it's maintained and has a lot more features and less bugs.