I am making a platform game in the glOrtho projection, and when i use gluLookAt, the image is seen well, but when i move it, the glu look at doesent move, instead it just makes part of my game screen black, it cuts it off.
The thing i want to accomplish is the camera GluLookat always looking at my player.
this is the code
//SCREEN_WIDTH=1024 and SCREEN_HEIGHT=768
bool init_GL()
{
glClearColor( 0, 0, 0, 0 );
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
glOrtho( 0, SCREEN_WIDTH, 0, SCREEN_HEIGHT, -1, 1 );
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
gluLookAt(0,0,0,0,0,-1,0,1,0);
now, the last line of code is gluLookAt, and only with these parameters gluLookAt(0,0,0,0,0,-1,0,1,0);
does the whole screen show, when I, for instance change the reference point
gluLookAt(0,0,0,200,200,-1,0,1,0);
it doesent show anything just a black screen, and when i do something like this
gluLookAt(0.003,0,0,0,0,-1,0,1,0);
than it cuts my viewport in half, and i only see half of my game, the other half is black.