Hi!
I'm trying to convert the awt.Graphics.drawLine into OpenGL.
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
glutInitWindowSize(600, 300);
(void)glutCreateWindow("GLUT Program");
How can I use glVertex2i with screen coordinates. Something like.
glVertex2i(100, 100);
Meaning that it will draw something on position x=100, y=100 on my window screen of size (600, 300)
In java one can use awt.Graphics.drawLine with window coordinates.
Please help