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

Author Topic: Turning pixels on and off?  (Read 1393 times)

0 Members and 1 Guest are viewing this topic.

zeromeus

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

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
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.
SFML / OS X developer