Click here to Skip to main content
15,886,732 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionInheritance!!! Pin
Nilesh Hamane8-Dec-09 18:58
Nilesh Hamane8-Dec-09 18:58 
AnswerRe: Inheritance!!! Pin
Cedric Moonen8-Dec-09 20:26
Cedric Moonen8-Dec-09 20:26 
AnswerRe: Inheritance!!! Pin
cheetach8-Dec-09 20:28
cheetach8-Dec-09 20:28 
QuestionCombination C and OpenGL: Making a loop to draw circles [modified] Pin
Chidori-chan8-Dec-09 18:46
Chidori-chan8-Dec-09 18:46 
AnswerRe: Combination C and OpenGL: Making a loop to draw circles Pin
LunaticFringe8-Dec-09 19:43
LunaticFringe8-Dec-09 19:43 
GeneralRe: Combination C and OpenGL: Making a loop to draw circles Pin
Chidori-chan8-Dec-09 20:35
Chidori-chan8-Dec-09 20:35 
GeneralRe: Combination C and OpenGL: Making a loop to draw circles Pin
Cedric Moonen8-Dec-09 20:42
Cedric Moonen8-Dec-09 20:42 
GeneralRe: Combination C and OpenGL: Making a loop to draw circles Pin
Chidori-chan8-Dec-09 20:58
Chidori-chan8-Dec-09 20:58 
Ultimately I'm making a game in which you use a cannon to shoot the same color circles, you'll have a five minute timer to get rid of them all. There will be three rows of circles, with one of three randomly generated colors (red, blue or green). I got my random color generation working, but since I had it on every circle in the drawfunction the colors were changing everytime the screen refreshed. So I need to put the random color generation in my main function and use an array to point at my drawCircle function. However I thought it might be easier if I drew my circles with a for loop. It's 15 circles per row and I had been planning on doing three loops so I only had to worry about the x component.

What I was trying to do with that piece of code was to draw my 15 cicles, keep the y component and translate the x component over 28 units for each circle so you have:

OOOOOOOOOOOOOOO

a row of fifteen side by side circles


I'm guessing my attempt was totally off the mark?
GeneralRe: Combination C and OpenGL: Making a loop to draw circles Pin
Tim Craig8-Dec-09 20:52
Tim Craig8-Dec-09 20:52 
GeneralRe: Combination C and OpenGL: Making a loop to draw circles [modified] Pin
Chidori-chan8-Dec-09 21:29
Chidori-chan8-Dec-09 21:29 
GeneralRe: Combination C and OpenGL: Making a loop to draw circles Pin
LunaticFringe9-Dec-09 3:42
LunaticFringe9-Dec-09 3:42 
GeneralRe: Combination C and OpenGL: Making a loop to draw circles Pin
Chidori-chan9-Dec-09 13:07
Chidori-chan9-Dec-09 13:07 
AnswerRe: Combination C and OpenGL: Making a loop to draw circles Pin
Cedric Moonen8-Dec-09 20:18
Cedric Moonen8-Dec-09 20:18 
QuestionWhy CDC::LineTo(pt) draw a line not include pt Pin
fitatc8-Dec-09 17:49
fitatc8-Dec-09 17:49 
AnswerRe: Why CDC::LineTo(pt) draw a line not include pt Pin
Richard MacCutchan8-Dec-09 22:06
mveRichard MacCutchan8-Dec-09 22:06 
GeneralRe: Why CDC::LineTo(pt) draw a line not include pt Pin
fitatc9-Dec-09 14:43
fitatc9-Dec-09 14:43 
GeneralRe: Why CDC::LineTo(pt) draw a line not include pt Pin
Richard MacCutchan9-Dec-09 23:18
mveRichard MacCutchan9-Dec-09 23:18 
GeneralRe: Why CDC::LineTo(pt) draw a line not include pt Pin
fitatc10-Dec-09 13:34
fitatc10-Dec-09 13:34 
QuestionDe Boor method to draw Bspline ?? Pin
a04.lqd8-Dec-09 16:54
a04.lqd8-Dec-09 16:54 
AnswerRe: De Boor method to draw Bspline ?? Pin
loyal ginger8-Dec-09 17:40
loyal ginger8-Dec-09 17:40 
GeneralCoding Team Needed in Advanced Artificial Intelligence Project-Project Vital Pin
Gabe Parmley8-Dec-09 15:54
Gabe Parmley8-Dec-09 15:54 
GeneralRe: Coding Team Needed in Advanced Artificial Intelligence Project-Project Vital Pin
LunaticFringe8-Dec-09 17:16
LunaticFringe8-Dec-09 17:16 
GeneralRe: Coding Team Needed in Advanced Artificial Intelligence Project-Project Vital Pin
Gabe Parmley8-Dec-09 17:19
Gabe Parmley8-Dec-09 17:19 
GeneralRe: Coding Team Needed in Advanced Artificial Intelligence Project-Project Vital Pin
Tim Craig8-Dec-09 20:59
Tim Craig8-Dec-09 20:59 
GeneralRe: Coding Team Needed in Advanced Artificial Intelligence Project-Project Vital Pin
Gabe Parmley9-Dec-09 4:59
Gabe Parmley9-Dec-09 4:59 

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.