AhmedSabry
02-06-2008, 08:00 AM
Hello All
I am a beginner in OpenGL and I am using OpenGL with MFC, and I am doing now 2D graphics,
I used the function
gluOrtho2D(-10.0f, 10.0f, -10.0f, 10.0f);
and I am wondering what is the units that used in OpenGL, in my code it is not pixels sure, I think it may be centimeters, but I am not sure, how can I modify this to use pixels, and I feel that, I think I don’t understand gluOrtho2D too much!
I am a beginner in OpenGL and I am using OpenGL with MFC, and I am doing now 2D graphics,
I used the function
gluOrtho2D(-10.0f, 10.0f, -10.0f, 10.0f);
and I am wondering what is the units that used in OpenGL, in my code it is not pixels sure, I think it may be centimeters, but I am not sure, how can I modify this to use pixels, and I feel that, I think I don’t understand gluOrtho2D too much!