   Quick SDL Question
  in my top down shooter, some sprite images and animations would obviously be reused. instead of loading them into a seperate surface every time they are needed, i created a SurfaceManager that loads all the surfaces needed for that level into a vector, and the sprite would query the manager for the picture it needs via the filename, and then it returns the picture to them.my question is, since sdl surfaces are done in forms of pointers SDL_Surface *surface, if i dont want to duplicate surfaces, would i return a regular pointer to the SDL_Surface, or a pointer that points to a SDL_Surface Pointer, aka, do i return:SDL_Surface* or SDL_Surface**my goal is to keep only one surface for each picture, so the sprite will recall back to the original one loaded at the beginning of the level, and not creating a copy of it. 
  You will want to return a pointer to an SDL_Surface (SDL_Surface *), since your sprite only needs to access the data of the SDL_Surface and not modify to which surface is being pointed to.Good Luck,Jeff;  You will want to return a pointer to an SDL_Surface (SDL_Surface *), since your sprite only needs to access the data of the SDL_Surface and not modify to which surface is being pointed to.Good Luck,Jeff Jeff ThompsonCTO, CodeTek Studios, Inc.http://www.codetek.com/ 