|
|
#1 |
|
Junior Member
Join Date: Mar 06
Posts: 19
![]() |
How to draw circle use openGL?
How to draw circle use openGL and then the circle move from middle top and down? use c++
|
|
|
|
|
|
#2 |
|
Code Giver
Join Date: Jan 03
Location: Argentina
Posts: 3,625
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Re: How to draw circle use openGL?
Take a look at the Lessons here: http://nehe.gamedev.net/
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 06
Posts: 19
![]() |
Re: How to draw circle use openGL?
but that website doesn't have circle movement from top to down sample...
|
|
|
|
|
|
#4 |
|
Fanatic Member
Join Date: Jul 02
Location: Up Above (i.e. AUS)
Posts: 571
![]() |
Re: How to draw circle use openGL?
if you can draw a circle, you can easily move it like you move any other object - pushMatrix(), transform / rotate it into the right spot, draw the circle, then popMatrix();
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Mar 06
Posts: 19
![]() |
Re: How to draw circle use openGL?
but use what to display? for example squre use glRectf(x,y) how about circle?
|
|
|
|
|
|
#6 |
|
Fanatic Member
Join Date: Jul 02
Location: Up Above (i.e. AUS)
Posts: 571
![]() |
Re: How to draw circle use openGL?
You can either do it manually (google "openGL circle" to find code)
*or* a good way is to use quadrics: http://jerome.jouvie.free.fr/OpenGl/.../Tutorial7.php |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|