Click here to Skip to main content
15,891,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhich pad.exe do u use to submit software? Pin
includeh107-Mar-06 4:48
includeh107-Mar-06 4:48 
AnswerRe: which pad.exe do u use to submit software? Pin
James R. Twine7-Mar-06 4:52
James R. Twine7-Mar-06 4:52 
GeneralRe: which pad.exe do u use to submit software? Pin
includeh107-Mar-06 5:02
includeh107-Mar-06 5:02 
GeneralRe: which pad.exe do u use to submit software? Pin
James R. Twine7-Mar-06 5:27
James R. Twine7-Mar-06 5:27 
QuestionRotating a 2D line Pin
FarPointer7-Mar-06 4:16
FarPointer7-Mar-06 4:16 
AnswerRe: Rotating a 2D line Pin
includeh107-Mar-06 4:50
includeh107-Mar-06 4:50 
GeneralRe: Rotating a 2D line Pin
FarPointer7-Mar-06 5:13
FarPointer7-Mar-06 5:13 
AnswerRe: Rotating a 2D line Pin
Andy Moore7-Mar-06 6:04
Andy Moore7-Mar-06 6:04 
This really isn't OpenGL specific but is just trigonometry. Decide on how many points you want to use in your rotation. For each point on the line you want to rotate it 360 degress around the z-axis. Decide what your delta theta is. For each point you will loop from 0 to the number of points and create a vertex as follows:

glBegin( GL_QUADS );

for each point on line
for each delta theta
x1 = x * cos(theta);
y1 = y * sin(theta);
z1 = z1;

glVertex3f( x1, y1, z1 );

glEnd();

I hope this helps you get started.

Deus caritas est
AnswerRe: Rotating a 2D line Pin
El Corazon7-Mar-06 8:50
El Corazon7-Mar-06 8:50 
AnswerRe: Rotating a 2D line Pin
Steve Echols7-Mar-06 20:14
Steve Echols7-Mar-06 20:14 
QuestionMaximum size of scrollbars Pin
pgrohs7-Mar-06 3:52
pgrohs7-Mar-06 3:52 
AnswerRe: Maximum size of scrollbars Pin
Gary R. Wheeler7-Mar-06 4:39
Gary R. Wheeler7-Mar-06 4:39 
GeneralRe: Maximum size of scrollbars Pin
pgrohs7-Mar-06 6:16
pgrohs7-Mar-06 6:16 
GeneralRe: Maximum size of scrollbars Pin
Gary R. Wheeler7-Mar-06 6:39
Gary R. Wheeler7-Mar-06 6:39 
AnswerRe: Maximum size of scrollbars Pin
pgrohs7-Mar-06 7:10
pgrohs7-Mar-06 7:10 
GeneralRe: Maximum size of scrollbars Pin
Gary R. Wheeler7-Mar-06 12:23
Gary R. Wheeler7-Mar-06 12:23 
GeneralRe: Maximum size of scrollbars Pin
pgrohs7-Mar-06 22:34
pgrohs7-Mar-06 22:34 
QuestionOk to use unsigned __int64 for an API expecting ULARGE_INTEGER? Pin
dandy727-Mar-06 3:42
dandy727-Mar-06 3:42 
AnswerRe: Ok to use unsigned __int64 for an API expecting ULARGE_INTEGER? Pin
Jack Puppy7-Mar-06 4:18
Jack Puppy7-Mar-06 4:18 
AnswerRe: Ok to use unsigned __int64 for an API expecting ULARGE_INTEGER? Pin
Gary R. Wheeler7-Mar-06 4:42
Gary R. Wheeler7-Mar-06 4:42 
GeneralRe: Ok to use unsigned __int64 for an API expecting ULARGE_INTEGER? Pin
dandy727-Mar-06 7:27
dandy727-Mar-06 7:27 
Questioncomparing two void* values Pin
Amr Shahin7-Mar-06 3:42
Amr Shahin7-Mar-06 3:42 
AnswerRe: comparing two void* values Pin
toxcct7-Mar-06 3:46
toxcct7-Mar-06 3:46 
AnswerRe: comparing two void* values Pin
James R. Twine7-Mar-06 4:12
James R. Twine7-Mar-06 4:12 
QuestionIE Active X Control Pin
folkenmax7-Mar-06 2:46
folkenmax7-Mar-06 2:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.