movie.update();
////movie is of object type sfe::Movie;
sf::Texture currentTexture = movie.getCurrentImage();
/////////////////////////////
////this is creating the openGL texture
sf::Image picture = currentTexture.copyToImage();
glDeleteTextures(1,&texture_handle);
glGenTextures(1, &texture_handle);
glBindTexture(GL_TEXTURE_2D, texture_handle);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, currentTexture.getSize().x,
currentTexture.getSize().y, 0, GL_RGBA, GL_UNSIGNED_BYTE,
picture.getPixelsPtr());
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
///////////////////////////////////////////////////////////////////////////////////
//this block is sending all the info to the shaders;
pipeline->useVertexShader(pipeline->_VertPassThrough);
pipeline->useFragmentShader(pipeline->_FragmentShader);
glEnable(GL_TEXTURE_2D);
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, texture_handle);
//sf::Texture::bind(¤tTexture);
pipeline->sendToShader("tex", 0);
glBindVertexArray(vertexArray);
glDrawArrays(GL_TRIANGLES, 0, vertexSize);
glBindTexture(GL_TEXTURE_2D, NULL);
glBindVertexArray(0);
currentTime = 0.0f;
so this in a nutshell is just a quick block of code that im using to test the currentimage function. The getCurrentImage is only returning the first image