Question about Advanced Graphics Programming Using OpenGL
I'm studying Physics, not CS, but I've had a few brushes with OpenGL.
I'll use a Basic-like pseudocode syntax since I don't know what language you're using, and basic is very easy to read:
'Constants - Radius is radius of the circle
Const PI = 3.14159, Radius = 10
'Current angle, and angular velocity (dTheta / dt)
Dim Shared Theta as Single, Omega as Single
'Frame is called when you want to draw a new frame
Sub Frame(dt as Single)
'dt is number of seconds passed since last frame (typically less than one, since you want several frames per second)
'Initialize the frame (clear buffers, set up projection, etc)
Theta = Theta + (Omega * dt)
'Calculate co-ordinates of point
X = Radius * Cos(Theta)
Y = Radius * Sin(Theta)
'Set the colour of the point
glColor(<r>, <g>, <b>, <a>)
'Draw the point
'Display the frame
Posted on Sep 05, 2009
A 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
The service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Posted on Jan 02, 2017
Tips for a great answer:
Aug 31, 2017 | The Computers & Internet
Aug 27, 2017 | The Computers & Internet
Aug 14, 2014 | Home Fencing
May 06, 2014 | Cars & Trucks
Mar 11, 2014 | SoftMath Algebrator - Algebra Homework...
Mar 10, 2014 | Computers & Internet
Dec 31, 2013 | Office Equipment & Supplies
Nov 17, 2009 | Gateway FPD1975W 19" LCD Monitor
Jul 09, 2009 | Computers & Internet
Mar 05, 2009 | Measuring Tools & Sensors
Jun 22, 2013 | Advanced Graphics Programming Using OpenGL...
434 people viewed this question
Usually answered in minutes!
Step 2: Please assign your manual to a product: