[ad_1]
i’ve not used opengl for a very long time and i’ve troubles organising a 2nd display screen the place the higher left window coordinates are 0,0 and the width and peak of the window are the max x and max y opengl coordinates, in order that
glBegin(GL_LINES);
glVertex2i(0,0);
glVertex2i(800, 0);
glVertex2i(0,0);
glVertex2i(0, 600);
glEnd();
does draw one line on the top of the window and one which goes down from the highest. i discovered many examples for glOrtho(left, proper, backside, top, close to, far) however none explains what i would like right here. I hope the query is to not trivial and you’ll assist me.
greatest regards,
honeymoon
[ad_2]