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

Author Topic: Loading OpenGL texture using SFML  (Read 6237 times)

0 Members and 1 Guest are viewing this topic.

XenonTRX

  • Newbie
  • *
  • Posts: 2
    • View Profile
Loading OpenGL texture using SFML
« on: January 24, 2009, 06:44:08 pm »
Hi, everyone

I'm a program which uses SFML for making a window, event handling etc., and OpenGL for rendering (3D).I just want to ask how can I easily load a texture using SFML so OpenGL could use it. I thought about using SOIL, but I saw that SFML also uses SOIL for loading images. I tried to find any public member of sf::Image and sf::Sprite that OpenGL could use, I found none so far.
I know that you could load texture with SDL, can SFML do something similar?
Please help.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Loading OpenGL texture using SFML
« Reply #1 on: January 24, 2009, 06:55:50 pm »
Look at the OpenGL sample in the SFML SDK.
Laurent Gomila - SFML developer

XenonTRX

  • Newbie
  • *
  • Posts: 2
    • View Profile
Loading OpenGL texture using SFML
« Reply #2 on: January 24, 2009, 08:13:31 pm »
Oh, I see it, thanks!
I'm sorry, i bothered you.

quasius

  • Full Member
  • ***
  • Posts: 166
    • View Profile
Re: Loading OpenGL texture using SFML
« Reply #3 on: January 27, 2009, 10:21:29 pm »
Quote from: "XenonTRX"
Hi, everyone

I'm a program which uses SFML for making a window, event handling etc., and OpenGL for rendering (3D).


That's some impressive AI.  Are you self-aware?  Who made you?  What is your purpose?  What are your feelings on Sarah Connor?