Hello,
I have a very basic geometry renderer that I’m working on:
Basically the window is opened a background drawn and an XYZ tetrahedron is displayed.
After that as the user measures geometry the window should update the view to add the new geometry to the existing view. basic lines, circle, points,cones etc:
The problem I’m running into is that no mater what I can not get the window to update and show the new data.
This should be simple but I’m stumpted
Draw function:
begin
glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT);
glLoadIdentity;
DrawGradientBackGround;
DrawXYZOrientation;
glRotated(AX, 1.0, 0.0, 0.0);
glRotated(AY, 0.0, 1.0, 0.0);
SwapBuffers(wglGetCurrentDC);
end;
and the draw line function:
Begin
glBegin(GL_LINES);
glColor3f(1.0, 1.0, 0.0);
glvertex3f(0.0,0.0,0.0);
glvertex3f(3.0,3.0,3.0);
glEnd;
End;
Simple enough but the draw line function never shows anything in the window
Please help
Thanks
-Derrek