Saturday, October 25, 2008

Qn 1: Define a Callback function
Ans: Callback function a code which is passed to another function as an argument

Qn 2: When exactly is myDisplay() called? How do you get to your findings?
Ans: When the program draws the screen then the display function will be called. It shows when a function is carried out when we debug the program.

Qn 3: List the process to access the VRAM.
Ans: Memory pointer to the VRAM is obtained. A double buffer memory is obtained.

Qn 4: What colour format are we using here i.e. 8 bits, 16 bits, 24 bits or 32 bits?
Ans: We are using 16 bits colour format since 16 bits = 1 byte.

Qn 5: How much memory have we allocated?
Ans: 800*600*1 = 480 000 bytes


Qn 6: Describe what has glDrawPixel() done.
Ans: glDrawPixel() has just sent data for the system to draw the plotted pixels on the screen/window which was previously created.

No comments: