To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Article :: Building Dynamic Systems with Expressions in .NET
How Is XML Like An Interface?
Understanding Covariance and Contravariance
Print VS 2010 Keyboard Shortcut References in Letter (8.5x11in) and A4 (210×297mm) Sizes
Updated Productivity Power Tools



Go Back   VBForums > Other Languages > C and C++

Reply Post New Thread
 
Thread Tools Display Modes
Old Mar 4th, 2006, 04:32 AM   #1
BradleyOng83
Junior Member
 
Join Date: Mar 06
Posts: 19
BradleyOng83 is an unknown quantity at this point (<10)
How to draw circle use openGL?

How to draw circle use openGL and then the circle move from middle top and down? use c++
BradleyOng83 is offline   Reply With Quote
Old Mar 4th, 2006, 04:37 AM   #2
jcis
Code Giver
 
jcis's Avatar
 
Join Date: Jan 03
Location: Argentina
Posts: 3,625
jcis is a splendid one to behold (700+)jcis is a splendid one to behold (700+)jcis is a splendid one to behold (700+)jcis is a splendid one to behold (700+)jcis is a splendid one to behold (700+)jcis is a splendid one to behold (700+)jcis is a splendid one to behold (700+)jcis is a splendid one to behold (700+)
Re: How to draw circle use openGL?

Take a look at the Lessons here: http://nehe.gamedev.net/
jcis is offline   Reply With Quote
Old Mar 4th, 2006, 07:17 AM   #3
BradleyOng83
Junior Member
 
Join Date: Mar 06
Posts: 19
BradleyOng83 is an unknown quantity at this point (<10)
Re: How to draw circle use openGL?

but that website doesn't have circle movement from top to down sample...
BradleyOng83 is offline   Reply With Quote
Old Mar 4th, 2006, 09:57 AM   #4
sql_lall
Fanatic Member
 
sql_lall's Avatar
 
Join Date: Jul 02
Location: Up Above (i.e. AUS)
Posts: 571
sql_lall  is on a distinguished road (30+)
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();
__________________
sql_lall
sql_lall is offline   Reply With Quote
Old Mar 4th, 2006, 10:37 AM   #5
BradleyOng83
Junior Member
 
Join Date: Mar 06
Posts: 19
BradleyOng83 is an unknown quantity at this point (<10)
Re: How to draw circle use openGL?

but use what to display? for example squre use glRectf(x,y) how about circle?
BradleyOng83 is offline   Reply With Quote
Old Mar 4th, 2006, 01:20 PM   #6
sql_lall
Fanatic Member
 
sql_lall's Avatar
 
Join Date: Jul 02
Location: Up Above (i.e. AUS)
Posts: 571
sql_lall  is on a distinguished road (30+)
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
__________________
sql_lall
sql_lall is offline   Reply With Quote
Reply

Go Back   VBForums > Other Languages > C and C++


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:07 PM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.