LWJGL Orthographic Sidescroller Camera

Hi,

For my game I am making I am trying to implement an orthographic camera to sidescroll, currently the camera just stays still and I cant seem to work out the best way to sidescroll (ideally attached to a entity(e.g. the player))

This is the only camera code I have right now:

GL11.glOrtho(0.0f, width, height, 0.0f, 1.0f, -1.0f);

Thanks,

  • Dan