mercredi 15 juin 2022

How to draw doted line map in Opengl C++ from Lat Long

I am new in Opengl and C++.I want to draw map boundary(red dash line) by reading (lat,log) from this file that i made from google earth that is space separated.

45.521282 56.506097
46.061904 58.982127
46.477755 61.11857
46.563424 66.067484
46.510663 66.351164
46.489992 70.193384
46.295765 71.682091
46.276396 74.043388
46.227225 76.416976
45.862093 78.940809
45.593859 80.411673
44.607279 85.182343
43.197715 87.939209
41.272127 89.762752
40.317727 91.792808
39.135441 91.663431
36.670475 91.906478
34.944342 91.808325
34.017509 92.130071
32.644511 92.009376
31.36299 91.783157
28.325122 92.645321
28.051045 92.535264
25.457318 92.36974
22.890968 90.614442
22.83433 88.233479
22.342165 85.424715
22.776728 81.373231
22.006604 77.972075
22.010218 75.109263
22.479532 71.977007
23.692048 68.478777
24.748809 65.330189
25.090663 63.921219
25.665829 62.339933
26.020832 60.776496
27.148259 58.964778
29.678896 56.504676
31.878088 54.627588
34.282046 53.754322
38.088186 54.083552
41.498822 53.484212
44.544402 53.125854
45.394006 54.182066

How i can make 2d map boundary in opengl using C++ 98.

How i can make this map resposive so that it get evirment and set display according to it ?

I have search it on google but didnot found any helping material .

Aucun commentaire:

Enregistrer un commentaire