SFML community forums

Help => Window => Topic started by: AdrianM on January 09, 2010, 04:01:51 am

Title: Want to draw an image onto a window and not use OpenGL, how?
Post by: AdrianM on January 09, 2010, 04:01:51 am
Is it possible to draw an image onto the screen using SFML, but not usin OpenGL at all? I'm asking that because i'm streaming some video using theora and i figure uploading the video frame through gdi(on windows) for example would be much faster than uploading it to video memory as a texture, on older less powerful video cards. Can i do this? If not is there a way i can access the hdc for example so i can implement this?
Title: Want to draw an image onto a window and not use OpenGL, how?
Post by: Laurent on January 09, 2010, 10:10:00 am
There's no way to do this in SFML other than using a dynamic OpenGL texture.

Quote
i figure uploading the video frame through gdi(on windows) for example would be much faster than uploading it to video memory as a texture

Are you sure of that? Did you make tests?
Title: Want to draw an image onto a window and not use OpenGL, how?
Post by: AdrianM on January 09, 2010, 11:09:42 am
Quote from: "Laurent"
There's no way to do this in SFML other than using a dynamic OpenGL texture.

Well, too bad!

Quote
i figure uploading the video frame through gdi(on windows) for example would be much faster than uploading it to video memory as a texture

Are you sure of that? Did you make tests?


No, i didn't i'm just guessing here :D.
Title: Want to draw an image onto a window and not use OpenGL, how?
Post by: Laurent on January 09, 2010, 12:42:15 pm
So you should just try before looking for another solution.