Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: When rendering a sprite, it's antialiased. I need it aliased. How can I do this?  (Read 1270 times)

0 Members and 1 Guest are viewing this topic.

Plazmotech

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
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!

Jebbs

  • Sr. Member
  • ****
  • Posts: 358
  • DSFML Developer
    • View Profile
    • Email
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
« Last Edit: December 22, 2012, 09:02:42 am by Jebbs »
DSFML - SFML for the D Programming Language.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: