Hello all,
I am new to Glut, and I have made a program in C to draw lines and triangle using bresenham algorithm. But, when i run the code, the display function is called 3 times automatically. I want it to run only once. If I give input for one line, it takes garbage values 2 more times.

Any ideas would be very helpful.

Thanks.

Without your code, we can't help you much... :-(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.