OK, I have made simple rectangular using OpenGL, and it looks pretty simple
glNormal3f(0.0f, 0.0f, 0.0f);
glVertex3f(-0.0, 2.0, 0.0);
glVertex3f(1.0, 2.0, 0.0);
glVertex3f(1.0, 0.0, 0.0);
glVertex3f(0.0, 0.0, 0.0);
and small as well. So my Q. is how can I make this twice as bigger using one single line of code or how can I make lets say only X axis values to be doubled. I know it’s possible, but I have no idea what function to search for. Thanks in advance.
Well, you can move the camera closer by using
glTranslateor scale the scene usingglScale. But frankly?… this is the way to go.