Week 2
Question and Answers
Question 1 – Why there are no errors and nothing has happened?
This is a openGL and there are no commands in the void main() function, when there is no commands in the void main () function,sometimes it will continue to compile.
Question 2 – Define a Callback function?
A callback function is a code that passed an argument to another code and then returns it.
Question 3 - When exactly is RenderScene()called? How do you get to your findings?
RenderScene is called right after the command glutMainLoop() in void main() function, then renderscene would use swapbuffer() back to main.
Question 4 – List the process to access the VRAM.
A struct is created, typedef struct. In void main function, it calls this function and it acceses the VRAM.
Question 5 - What color format are we using here i.e. 8 bits, 16 bits, 24 bits or 32 bits?
24bits color format.
Question 6 - How much memory have we allocated?
1.44MB
Question 7 - Describe what has glDrawPixel() done.
glDrawPixel allows user to input X and Y coordinates in respect to the resolution. It also allows user to input RGB Black(0,0,0) to White(255,255,255).
Click here for the link to download the OpenGL file.
Thursday, November 1, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment