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

Author Topic: Want to draw an image onto a window and not use OpenGL, how?  (Read 3613 times)

0 Members and 1 Guest are viewing this topic.

AdrianM

  • Newbie
  • *
  • Posts: 43
    • View Profile
Want to draw an image onto a window and not use OpenGL, how?
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Want to draw an image onto a window and not use OpenGL, how?
« Reply #1 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?
Laurent Gomila - SFML developer

AdrianM

  • Newbie
  • *
  • Posts: 43
    • View Profile
Want to draw an image onto a window and not use OpenGL, how?
« Reply #2 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Want to draw an image onto a window and not use OpenGL, how?
« Reply #3 on: January 09, 2010, 12:42:15 pm »
So you should just try before looking for another solution.
Laurent Gomila - SFML developer