A** really good, how to figure and how to place all those star, men this is something and very clear knead code, this guy is like Capablanca Chess Master known for a simple destructive way of solving chess intricate combinations...... hat off to this master, the way he explained, project and develop is clean and lethal....
@FrozenIceCweam That's an awful practice, not a good one. A good practice is to declare your variables as late as possible, so as to avoid unnecessary constructor calls. If you declare all of your variables at the top of a code block then if the code block gets too large, it becomes more difficult, not less, to see what things are, and you potentially waste time declaring variables you don't need.
@Firestarter9000, Of course you shouldn't use variables that you haven't declared. That would be part of "declare them as late as possible". You'll note I didn't say "Don't declare variables".
@OntDinRS Header files have absolutely nothing to do with anything I said. Further, your second point is EXACTLY what I wrote. We aren't disagreeing (except your confusion over headers).
@WatchDragon It's just how he codes. Just like how I feel it is better to drop the curly-brace after the parenthesis for a block of code; there are some people, such as the demonstrator, who don't and keep the curly-brace next to the parenthesis. Or how some C/C++ programmers type in void for the parameters of a function/method when there are no parameters inside of the parenthesis.
Very cool, probably would be easier to just use a single bitmap but where's the fun in that lol. You use pi to 30+ digits, a little overkill lol. And you should stay away from triangle fans whenever you can, too many reasons to state. I like how perfect the flag come out though.
Finally after so many Googling I land up somewhere I can actually learn!! A good leap for me through this tutorial!!! Thank you so much!!! :) :)
devilheart747 2 weeks ago
this Tutorial ist one of the best tutorials in the internet. you`re cool :-)
MrProgramminggroup 1 month ago in playlist C++ OpenGL Beginner Tutorials 2
D:<
rccppt 2 months ago
I got circles instead of stars xD
100GPing100 3 months ago
the two DrawStar and DrawStars had me confused for a few minutes :(
Robert1995 4 months ago
Thank you very much for the amazing lessons.
spacedaily 9 months ago
opengl IS SOOOO HARD TO UNDERSTAND !!!
linkinl1 10 months ago
it looks really cool if you change "glBegin(GL_QUADS); to "glBegin(GL_LINES);
hc1435 11 months ago
Dude, you are SAVING my life! Lol!
Gremlin35867876 1 year ago
Can you use dev C++?
Desoxena 1 year ago
@Desoxena Yup
MisterJ4512 1 year ago
@Desoxena of course, but Visual C++is easier to use.
Logart8 9 months ago
This has been flagged as spam show
OMG Do you know that a float only stores approx 7 decimal. Your value of pi will not fit in the float.
milasudril 1 year ago
This has been flagged as spam show
Do you know that a float only stores approx 7 decimal. Your value of pi will not fit in the float.
milasudril 1 year ago
@Col788 Do you know that a float only stores approx 7 decimal. Your value of pi will not fit in the float.
milasudril 1 year ago
A** really good, how to figure and how to place all those star, men this is something and very clear knead code, this guy is like Capablanca Chess Master known for a simple destructive way of solving chess intricate combinations...... hat off to this master, the way he explained, project and develop is clean and lethal....
omahdezavalos 1 year ago
This has been flagged as spam show
YOU ARE FUCKIN AWESOME :)
mushinart 1 year ago
is it ok to use dev C++ instead of visual c++ ?
yangabernard1 1 year ago
an American flag? urgh, how uncreative. boring patriots.
MustNotRead 1 year ago
I am tripping up on why he is declaring floats in the middle of DrawStripes(), i was always told to declare all variable at the top.
WatchDragon 2 years ago
Declaring all your variables as globals is actually a bad practice =o. If possible, it's actually better to not have globals if possible
XianForce 2 years ago
@WatchDragon It's good practice to but all Variables at top of a code block it helps add readability.
FrozenIceCweam 1 year ago
@FrozenIceCweam That's an awful practice, not a good one. A good practice is to declare your variables as late as possible, so as to avoid unnecessary constructor calls. If you declare all of your variables at the top of a code block then if the code block gets too large, it becomes more difficult, not less, to see what things are, and you potentially waste time declaring variables you don't need.
StrategyRose 1 year ago
@StrategyRose The compiler complains, though, if variables are used before they are declared and (sometimes) initialized.
Firestarter9000 1 year ago
@Firestarter9000, Of course you shouldn't use variables that you haven't declared. That would be part of "declare them as late as possible". You'll note I didn't say "Don't declare variables".
StrategyRose 1 year ago
@StrategyRose
You're wrong. It's an official industry standard that variables are declared in their own header file and included.
To avoid declaring variables you may not need, don't type them down until you need them. It's as simple as that.
OntDinRS 5 days ago
@OntDinRS Header files have absolutely nothing to do with anything I said. Further, your second point is EXACTLY what I wrote. We aren't disagreeing (except your confusion over headers).
StrategyRose 4 days ago
@WatchDragon It's just how he codes. Just like how I feel it is better to drop the curly-brace after the parenthesis for a block of code; there are some people, such as the demonstrator, who don't and keep the curly-brace next to the parenthesis. Or how some C/C++ programmers type in void for the parameters of a function/method when there are no parameters inside of the parenthesis.
everette00 1 year ago
I love all your videos, watched all of the console ones already mostly to get my knowledge of c++ back. You are really good in explaining!
koekoeka 2 years ago 17
Its ok I found the source code now thanks
MrOnix9009 2 years ago
Comment removed
MrOnix9009 2 years ago
thanks!!!!!!!!!!!!! :D
MrOnix9009 2 years ago
nice
pakistanzindabada 3 years ago 2
Muy bueno!!!!! :D
Col788 3 years ago 17
@Col788 Do you know that a float only stores approx 7 decimal. Your value of pi will not fit in the float.
milasudril 1 year ago
Very cool, probably would be easier to just use a single bitmap but where's the fun in that lol. You use pi to 30+ digits, a little overkill lol. And you should stay away from triangle fans whenever you can, too many reasons to state. I like how perfect the flag come out though.
AndyGoRAWR 3 years ago
WOOHOO
bobbybroown 3 years ago