   I need to loop my game backround
  Yes I have  just finished learning sdl and need some help. I have created the image for my background but dont have any ideas to keep looping the image until the player destroys a certain amount of enemies. The game I am creating is a side scroller shooter. So I need the background to move and keep looping. If you have any ideas on how to do this please tell and an example would be extremely helpful. Thank you in advance, forestlaw89   
  Parallax scrolling! This is what it sounds like your describing. I found this size. It might help you in your search. Hope that helps!;  sorry but thats not it. Thanks very much though. I was asking to have the backround reset itself so it starts over. So the end of the bitmap touches the front of the bitmap and keeps looping. Sorry for the terrible explanation my english is very bad.   ;  You have to keep track of how much you moved, or how much has the texture moved off screen. Once you have one of those numbers, you can find out how much of your background texture is mising, then you simply redraw where your background ends.This will always involve using multiple polygons if your using them. If your just using pixels, you need to keep track of how many pixels you have moved over, once your background begins to move off the screen, you draw a second background texture and you line it up.So in other words, you have to draw your 2 textures side by side, and move them and update them as your player/entity scrolls through the world. If your background texture is the same width of your screen resolution, then you will need to draw the background texture a minimum of 2 times.   ;  Create a variable that will be used as the x position for the background. In the loop, lower the value of that variable until the value is lower than the width of the window, if it is lower than the width, reset the variable to 0.Lazy foo has a good tutorial about this:http://lazyfooproductions.com/SDL_tutorials/lesson19/index.php   