draw polygon using only two vertices
Graphics
1
Posts
1
Posters
1
Views
1
Watching
-
HEllo everyone, i am new to OpenGL and trying to figure out how to draw a rectangle using only 2 vertices. what i need to do is on button click select 2 opposite vertices like (0,0) and (10,10) let say. After i click 10,10 a rectangle should be drawn and it has to be not a solid line but dashed. please tell me what to do and what to write where. I tried googling didn't find anything regarding this. thanks FYI: i am going to be using this rectangle for clipping polygons.