* fixed bug when setting the polygon draw mode, cull face and blend function on OpenGL
 * added some code documentation