hey, i'm new to OpenGL, and cutting my teeth on some stuff.. i'm using SDL combined with OpenGL to do 2d graphics.. I've created a sprite i can display on the screen, but i'm trying to understand how textures are handled...
from what i gather, you generate an "id" for a texture by calling glGenTextures, which returns new "blank" texture id's, which you then draw your image on using glBindTexture, and glTexImage2D (and some other params)... after this the texture is saved somewhere, (buffer?) and you can "draw" it to a quad using glBindTexture and the glTexCoord2f functions?
mainly i'm how i should go about saving an instance of the texture... i know SFML requires you to save images in a singular library, SDL takes care of it by itself.. does open gl handle this in the backend so all you're really dealing with is the IDs?



