11-02-2012 08:50 PM
If I define the following two points for a line
and scale using
glScalef((float) (surface_width),(float) (surface_height),1.0f );
when I draw using (after setting gl vertex array and vertex pointer to the vertices array)
glDrawArrays(GL_LINES, 0, 2);
I get what I expect, a nice diagonal line from upper left down to lower right.
Now if I change only the vertices to
line=0.6; /*change this from -0.6 to 0.6*/
I get nothing drawn on the screen.
I'm using the BB10 simulator with landscape mode selected in the bar descriptor file.
Am I missing something simple here? I expect a line going straight across the screen at 2/3 the way up from center.
Solved! Go to Solution.