By streaming I mean just constantly executing the capture code over and over again, which is just GDI capture then loading the data into SFML for drawing.
Anyway, today I'm gonna get working on that vecor/update method and get back to you guys on how it went.
EDIT: I can't get texture update to work
I'm just trying to test out how to update one pixel to get an idea of how to do it.
sf::Texture myTexture;
myTexture.create(1,1);
std::vector<sf::Uint8> myVector;
myVector.push_back(255); // RED
myVector.push_back(0); // GREEN
myVector.push_back(0); // BLUE
myVector.push_back(0); // ALPHA
myTexture.update(myVector);
Also, should I be using push_back for this??
EDIT: I managed to get arrays to work, but not vectors. Why should I use vectors? (won't it be faster to use arrays - or were you thinking that I would be changing the size of the capture?)
sf::Texture myTexture;
myTexture.create(1,1);
sf::Uint8 myArray[] = {255,0,0,255};
myTexture.update(myArray);