I have a square view 100dp X 100dp and I want to do same size square with opengl.
My problem is how I control the size of the square ?
In opengl we have the vertices of the surface, the z coordinate and the angle of the gluPerspective function (fovy)
private float[] vertices = { -1.0f, -1.0f, 0.0f, 1.0f, -1.0f, 0.0f, -1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.0f }
fovy = 45.0
z = ??
How I should calculate the size of my square ???