Question 1 – Define a Callback function?
Ans:It is a function for us able to add it to any main() function and to be able to be used.Thus,we can use any function just by calling it.
Question 2 - When exactly is myDisplay()called? How do you get to your findings?
Ans:I got to it when i am going to enter this line of code "glutPostRedisplay();".It is actual name is called glutPostRedisplay(myDisplay).
Question 3 – List the process to access the VRAM.
Ans:1)We must first declare a struct type that we can used to represent a pixel on a screen.
2)Then we manipulate and allocate the memory space
3)Then we copy the content to the double buffer and openGL will handle the rest for us.
Question 4 - What color format are we using here i.e. 8 bits, 16 bits, 24 bits or 32 bits?
Ans:8 bits
Question 5 - How much memory have we allocated?
Ans:480,000 bytes
Question 6 – Describe what has glDrawPixel() done.
Ans:It can defined the size of the area that the pixel can draw on.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment