Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Fastest way of drawing a matrix
Print
Pages: [
1
]
Author
Topic: Fastest way of drawing a matrix (Read 1969 times)
0 Members and 1 Guest are viewing this topic.
Zamadatix
Newbie
Posts: 27
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?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Fastest way of drawing a matrix
anything