These days i am programming for Iphone as an Independent/Freelance Programmer and since gaming is a very big market in Iphone, so i am trying to learn OpenGl for this purpose. So here are few understandings of mine.
1. What is Computer Screen for Programmer
Programmer should see computer screen as 2 dimensional array of Objects, where each object corresponds to a pixel or maps to a pixel on the screen. So whats in that Object? Well you can store different information in that Object depending upon what kind of VGA you are using, sometime Object has a variable which has 8 bits/1 byte or just 1 bit etc etc which you can manipulate. So programmer just write that memory and remaining stuff is done by some other forces (loz), to make that array print on the screen, and one thing which it will be doing is that, it will be reading your memory 60 times in a sec in-order to refresh the screen. When this thing become clear to me, i remember the days when i was learning Assembly language in University and we were writing in a specific area of memory to print things on screen, so it was quite refereshing for me and i was able to relate my knowldge of Assembly Language here.
Note: This 2 dimensional Array is called Frame-Buffer or simply Buffer in Computer Graphics or in OpenGl reference.
2. OpenGl is Made of 3 Libraries
So there are 3 parts of OpenGl
1. GL (Graphics Library)
2. GLU (Graphics Library Utilities)
3. GLUT (Graphics Library Utilities ToolKit)
So whats in these 3 libraries?
1. GL (Graphics Library)
Gl Provide you primitive objects for drawing e.g; Point, Line, Polygon, Triangle, Sphere, Cubes, Quadric Surfaces, plus many other things which i will update when i will get understanding of them.
2. GLU (Graphics Library Utilities)
…………………