# SDL\_Image + Opengl beginner question

**URL:** <https://discourse.libsdl.org/t/sdl-image-opengl-beginner-question/12450>\
**Category:** SDL Development\
**Created:** [August 9, 2005, 10:40pm UTC](https://discourse.libsdl.org/t/sdl-image-opengl-beginner-question/12450 "2005-08-09T22:40:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ferran\_Ferri](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/f/76d3ee/32.png) [@Ferran\_Ferri](https://discourse.libsdl.org/u/Ferran_Ferri)\
**Post date:** [August 9, 2005, 10:40pm UTC](https://discourse.libsdl.org/t/sdl-image-opengl-beginner-question/12450/1 "2005-08-09T22:40:44Z")

</div>

Hi all, just a beginner question:

SDL\_image could work over openGL. Or only over SDL\_surfaces? There are a  
way to convert a SDL\_Surface to a \*image?

THX

Ferran Ferri Perez  
Software Engineer

RedSauce S.L.\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
Renovamos el Correo Yahoo!  
Nuevos servicios, m?s seguridad  
[http://correo.yahoo.es](http://correo.yahoo.es)

---

<div class="post-metadata">

**Author:** ![Simon\_Roby](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@Simon\_Roby](https://discourse.libsdl.org/u/Simon_Roby)\
**Post date:** [August 10, 2005, 12:16am UTC](https://discourse.libsdl.org/t/sdl-image-opengl-beginner-question/12450/2 "2005-08-10T00:16:38Z")

</div>

You seem to be confused. SDL\_image is a add-on library that generates  
SDL\_Surfaces from common file formats.

Look in the examples section of the SDL wiki if you need help loading  
an SDL\_Surface into an OpenGL texture.

- SROn 8/9/05, Ferran Ferri wrote:

> Hi all, just a beginner question:
> 
> SDL\_image could work over openGL. Or only over SDL\_surfaces? There are a  
> way to convert a SDL\_Surface to a \*image?
> 
> THX
> 
> Ferran Ferri Perez  
> Software Engineer
> 
> RedSauce S.L.
> 
> * * *
> 
> Renovamos el Correo Yahoo!  
> Nuevos servicios, m?s seguridad  
> [http://correo.yahoo.es](http://correo.yahoo.es)
> 
> * * *
> 
> SDL mailing list  
> SDL at [libsdl.org](http://libsdl.org)  
> [http://www.libsdl.org/mailman/listinfo/sdl](http://www.libsdl.org/mailman/listinfo/sdl)
