Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
When rendering a sprite, it's antialiased. I need it aliased. How can I do this?
Print
Pages: [
1
]
Author
Topic: When rendering a sprite, it's antialiased. I need it aliased. How can I do this? (Read 1461 times)
0 Members and 1 Guest are viewing this topic.
Plazmotech
Newbie
Posts: 7
When rendering a sprite, it's antialiased. I need it aliased. How can I do this?
«
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!
Logged
Jebbs
Sr. Member
Posts: 358
DSFML Developer
Re: When rendering a sprite, it's antialiased. I need it aliased. How can I do this?
«
Reply #1 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.
«
Last Edit: December 22, 2012, 09:02:42 am by Jebbs
»
Logged
DSFML
- SFML for the D Programming Language.
Nexus
SFML Team
Hero Member
Posts: 6287
Thor Developer
Re: When rendering a sprite, it's antialiased. I need it aliased. How can I do this?
«
Reply #2 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.
Logged
Zloxx II
: action platformer
Thor Library
: particle systems, animations, dot products, ...
SFML Game Development
:
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
When rendering a sprite, it's antialiased. I need it aliased. How can I do this?