OpenGL - Day 1

I have to learn opengl and finally decided to get my ass to the seat and learn it. I always slinked away when trying to learn it, because of the tremondous amount of code I had to write for it.
I got the visual studio 2005 and installed visual c++, and went to This great tutorial site where I did five lessons till now.

The first lesson was bad. I had to write about 450 lines of code to produce a black screen.
Lesson 2: draw a triangle and square with 20 more lines. not bad
Lesson 3: blended colors. Not bad. And add rotation while you’re at it
Lesson 4: Make the triangle and square 3d. Now we’re getting somewhere
Lesson 5: Map a bitmap as a texture. Now we’re cooking and the total comes out to 600 lines. Neat!!!

I tried loading several bitmaps, of all sizes and it handled even hi-res images beautifully. At the end of the day, you can see a screenshot of my work. A six sided cube with Gordon Freenman
mapped from a 500*500 texture. Part of my code is visible too :) I’ll upload the stuff when I do something nice.

Free Image Hosting at www.ImageShack.us

2 Responses to “OpenGL - Day 1”


  1. 1 Yansky

    The tutorial link doesn’t work. :(

  2. 2 Anirudh

    Oh. Something’s wrong with my link system. Anyways the link is http://nehe.gamedev.net
    Hope the hotlinking works this time.

Leave a Reply