Added: 3 years ago
From: xoaxdotnet
Views: 40,318
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (37)

Sign In or Sign Up now to post a comment!
  • 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!!! :) :)

  • this Tutorial ist one of the best tutorials in the internet. you`re cool :-)

  • D:< 

  • I got circles instead of stars xD

  • the two DrawStar and DrawStars had me confused for a few minutes :(

  • Thank you very much for the amazing lessons.

  • opengl IS SOOOO HARD TO UNDERSTAND !!!

  • it looks really cool if you change "glBegin(GL_QUADS); to "glBegin(GL_LINES);

  • Dude, you are SAVING my life! Lol!

  • Can you use dev C++?

  • @Desoxena Yup

  • @Desoxena of course, but Visual C++is easier to use.

  • @Col788 Do you know that a float only stores approx 7 decimal. Your value of pi will not fit in the float.

  • 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....

  • is it ok to use dev C++ instead of visual c++ ?

  • an American flag? urgh, how uncreative. boring patriots.

  • 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.

  • Declaring all your variables as globals is actually a bad practice =o. If possible, it's actually better to not have globals if possible

  • @WatchDragon It's good practice to but all Variables at top of a code block it helps add readability.

  • @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 The compiler complains, though, if variables are used before they are declared and (sometimes) initialized.

  • @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

    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 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.

  • 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!

  • Its ok I found the source code now thanks

  • Comment removed

  • thanks!!!!!!!!!!!!! :D

  • nice

  • Muy bueno!!!!! :D

  • @Col788 Do you know that a float only stores approx 7 decimal. Your value of pi will not fit in the float.

  • 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.

  • WOOHOO

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more