Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am getting an infinite line when I try to draw a line in OpenGl..
Can anyone explain why ?


code snippet

C#
gl.Color3f(0.000000f, 1.000000f, 0.000000f);
gl.Vertex3f(0.000000f, 0.000000f, 0.000000f);
gl.Vertex3f(0.000000f, 1.00000f, 0.000000f);
gl.Color3f(0.000000f, 0.000000f, 1.000000f);
gl.Vertex3f(0.000000f, 0.000000f, 0.000000f);
gl.Vertex3f(0.000000f, 0.000000f, 1.00000f);
Posted
Comments
Santhosh G_ 19-Apr-13 3:56am    
Please provide additional information about projection and viewport. If possible please provide enitre source code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900