OpenGL MUST Project 1[Polyline Editor] use linked
2016-08-23
0 0 0
no vote
Other
Earn points
#include <D:HomeworkOpenGLProject1GLUT 3.7glut.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "point.h"
/*draw line from the line array*/
void drawPointLine()
{
Node * temp;
for (int i=0;i<Arraysize;i++)
{
temp=polylineArray[i];
glBegin(GL_LINE_STRIP);
while (temp->next!=NULL)
{
temp=temp->next;
glVertex2i(temp->x,temp->y);
}
glEnd();
}
}
/*find the point and delete the point from the line array*/
void delpointFun(int xx,int yy)
{
for (int i=0;i<Arraysize;i++)
{
delpoint=polylineArray[i];
while (delpoint->next!=NULL)
{
int del_x=delpoint->next->x-xx;
int del_y=delpoint->next->y-yy;
if((del_x < 5 && del_x > -5)&&(del_y < 5 && del_y > -
c++
OpenGLMUSTProjectPolylineEditorus
Related Source Codes
Local Path Planning Algorithm - DWA Algorithm
0
0
no vote
enDAQ-Shock-Data-Share-SRS-Blog
0
0
no vote
Calling chatGPT in a Windows application
0
0
no vote
Test Hello world
0
0
no vote
RCS calculation by one-way ray tracing
0
0
no vote
No comment