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

Author Topic: Fastest way of drawing a matrix  (Read 1980 times)

0 Members and 1 Guest are viewing this topic.

Zamadatix

  • Newbie
  • *
  • Posts: 27
    • View Profile
Fastest way of drawing a matrix
« on: December 07, 2010, 02:15:35 am »
Let's say that I have a matrix of color values, each color represents a type of data that the CPU calculates and changes the matrix accordingly each frame. What is the fastest way to get this matrix to drawn on the screen as a sprite?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Fastest way of drawing a matrix
« Reply #1 on: December 07, 2010, 07:58:52 am »
Use a sf::Image and its LoadFromPixels function to update it from your array of colors.
Laurent Gomila - SFML developer

 

anything