Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Turning pixels on and off?
Print
Pages: [
1
]
Author
Topic: Turning pixels on and off? (Read 2006 times)
0 Members and 1 Guest are viewing this topic.
zeromeus
Newbie
Posts: 3
Turning pixels on and off?
«
on:
June 30, 2011, 09:02:44 pm »
Sorry if the answer to this is on the tutorials, but I was looking around and I couldn't find it. After opening a window, how do I set an individual pixel's color?
Thanks!
Logged
Hiura
SFML Team
Hero Member
Posts: 4321
Turning pixels on and off?
«
Reply #1 on:
July 01, 2011, 11:17:38 am »
You can't.
You have to use sprites. Draw a sprite of size 1x1 at the desired position. It should do it.
Logged
SFML / OS X developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Turning pixels on and off?
anything