Setting 0,0 point in top left corner with qt and open gl
Unsolved
General and Desktop
-
Hello, i want to setting like the topic says:
QMatrix4x4 mtrx; mtrx.ortho(0.0f,1024.0f,0.0f,768.0f,-1.0f,1.0f); m_program.setUniformValue(matrixUniform,mtrx);
when i set X and Y of rectangle to 0,0 open gl drawing it in bottom left corner, as i said before i need point 0,0 in top left corner
andQMatrix4x4 mtrx; mtrx.ortho(0.0f,1024.0f,768.0f,0.0f,-1.0f,1.0f); m_program.setUniformValue(matrixUniform,mtrx);
this piece of code does not drawing anything in my QGLWidget in any position i set.
Can someone tell me where is the problem, thanks in advance