Click here to Skip to main content
15,885,244 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
That did get rid of the compile error thank you.

However you're correct in thinking it might not do what I want. It was only drawing one circle that can be seen. However, you all's posts made me realize I should be calling the int o I have in the translation. This kinda worked, except it drew them too close together.
My revised portion is:

int o = 54;


for
(o=0; o<15; o++)

{
   
    glPushMatrix();
    glTranslatef(o+28,455,1);
        random_generator(0,3);
        if (randomValue == 0)
{
    glColor3f(0,.5,0);

}
        else if (randomValue == 1)
{
    glColor3f(.5,0,0);

}
        else
{
    glColor3f(0,0,.5);

}
    glLineWidth(1.0);
    drawCircle(14,200);
    glPopMatrix();
}


This is what it looks like:
http://img.photobucket.com/albums/v222/Carlota/Circles.png

I need to get the circles to be side by side. Though I was under the impression I needed to do this in an array so that later I could set up if then statements to change flags so I could turn the circle off if it was hit by the fired circle?

modified on Wednesday, December 9, 2009 3:39 AM

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 
QuestionString from pointer to a char? Pin
o m n i8-Dec-09 14:45
o m n i8-Dec-09 14:45 
AnswerRe: String from pointer to a char? Pin
David Crow8-Dec-09 16:48
David Crow8-Dec-09 16:48 

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.