I just started learning opengl from past few days, so i dunno much about it. So probably some one out there would help me out in this simple problem which i am facing on co-ordinated, i mean setting the co-ordinates of the screen. Have a look at code below
i wanted the co-ordinated 0.0 start from the top left of the screen. But by default it starts from the center of the screen which mean what ever i draw its all in the center but i wanted to be on top left of the screen. How do i do that, can any one please guide me in this.
int main(int argc, char **argv)
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glClearColor (0.0, 0.0, 0.0, 0.0);
gluOrtho2D (0.0, 0.0, 0.0, 0.0);
glColor3f(1.0, 1.0, 1.0);