Hi,
I am very new to OpenGL…
and am currently using JOGL.
Creating an object is OK…but i just cant get the object to move…
eg:- I create a simple 2D triangle
I want to rotate it around a vertice A…
|\
| \
|_ _ \ pos 1
_ _
| /
| /
|/ pos 2
and so on…
could someone tell me what commands do i use to make this happen…
I tried creating four different triangles,around a vertice…
sequentially…but i dont know how to clear the previous drawn triangle…so that the next triangle appears alone…i mean the triangle appears to be moving…
I follow the approach below…
- I draw a triangle with a begin and end section…
- I issue the glClear command…
- I draw the triangle again in a new position…
…
Is the above approach incorrect???
Please suggest a solution…