Just wondering, what would be the most efficient way to implement parralax scrolling? –
Calcluate background offset from player position, relative to world map
Setup GL co-ordinates such that they match world map, and draw map from ( 0, 0 ) to ( mapWidth, mapHeight ).
Take advantage of the depth buffer somehow… - I have heard of this, but I do not know how to set up co-ordinates such that the black ‘offscreen’ is not seen at any point on the map - i.e. so that there is always a part of the background drawn.
Different method/variation that I do not know
Well, let me know, and thanks!