SFML community forums

Help => Graphics => Topic started by: XenonTRX on January 24, 2009, 06:44:08 pm

Title: Loading OpenGL texture using SFML
Post by: XenonTRX 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.
Title: Loading OpenGL texture using SFML
Post by: Laurent on January 24, 2009, 06:55:50 pm
Look at the OpenGL sample in the SFML SDK.
Title: Loading OpenGL texture using SFML
Post by: XenonTRX on January 24, 2009, 08:13:31 pm
Oh, I see it, thanks!
I'm sorry, i bothered you.
Title: Re: Loading OpenGL texture using SFML
Post by: quasius 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?