Board index » delphi » OpenGL Newbie question
Mike
![]() Delphi Developer |
Sat, 03 Aug 2002 03:00:00 GMT
OpenGL Newbie question
thanks in advance for any help! I'm trying to use
glOrtho(-200.0,200.0,-200.0,200.0,-3.0,3.0); and then draw a line using glColor3f(0.5,0.0,0.0); The line appears, but it goes from one side of the form to the other. Even glVertex2f(-10,0); Only if I use: glVertex2f(-0.5,0); does it start 1/4 in from each side. Here is the core code: FillChar(pfd, SizeOf(pfd), 0); glOrtho(-200.0,200.0,-200.0,200.0,-3.0,3.0); thanks, |