| |

VerySource

 Forgot password?
 Register
Search
View: 731|Reply: 1

Is there a function similar to LINETo in OPENGL?

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-4 10:30:01
| Show all posts |Read mode
Is there a function similar to LINETo in OPENGL?
Reply

Use magic Report

0

Threads

14

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-5-26 13:15:01
| Show all posts
There must be, there is no graphics library, and the function is more powerful, more convenient and more efficient to use
The following is a function that connects two points (x1, y1, z1) (x2, y2, z2)
When connecting multiple lines, just insert glVertex3d (x, y, z) in glBegin (GL_LINES); glEnd ();
void Line (double x1, double y1, double z1, double x2, double y2, double z2)
{
    glBegin (GL_LINES);
    glVertex3d (x1, y1, z1);
    glVertex3d (x2, y2, z2);
    glEnd ();
}
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list