im using VB and OGL ( i dont know why im doin that) and iv set a +ve viewport and im tryin to draw just one line from the bottom left corner to the top right corner, whatz happenin is that the line is slightly shifted. the line is starting at some height and width and not at the bottom left corner and extends beyond the right side of the window. somebody help!! herez how im settin the viewport
Pic1.ScaleMode = vbPixels
intWidth = Abs(Pic1.ScaleWidth)
intHeight = Abs(Pic1.ScaleHeight)
glViewport 0, 0, intWidth, intHeight
pic1 is the picture box into which im renderin.
thank u