i am very new to opengl ...please let me know where is the origin of opengl window....
and by default is it orthographic projection??
i am very new to opengl ...please let me know where is the origin of opengl window....
and by default is it orthographic projection??
The matrices both default to the identify matrix which makes the projection orthogonal. It is unusual to leave these un-modified except for a simple test.
Since you posted this in the shader section I should add that for a shader there are no defaults you muse supply your own matrices.
The origin is the centre of the viewport but you have to set the viewport - usually to the whole window. The viewport will be 2 world units wide and high for -1 - +1
I guess you should read this first.