InterviewSolution
| 1. |
What Are The Drawing Modes Supported By Webgl? |
|
Answer» WebGL supported following drawing modes that are listed in table: Mode Description gl.POINTS It is used to draw a series of points. gl.LINES It is used to draw a series of UNCONNECTED line SEGMENTS. gl.LINE_STRIP It is used to draw a series of connected line segments. gl.LINE_LOOP It is used to draw a series of connected line segments. It ALSO joins the first and last vertices. gl.TRIANGLES It is used to draw a series of separate triangles. gl.TRIANGLE_STRIP It is used to draw a series of connected triangles in STRIP FASHION. gl.TRIANGLE_FAN It is used to draw a series of connected triangles sharing the first vertex. WebGL supported following drawing modes that are listed in table: Mode Description gl.POINTS It is used to draw a series of points. gl.LINES It is used to draw a series of unconnected line segments. gl.LINE_STRIP It is used to draw a series of connected line segments. gl.LINE_LOOP It is used to draw a series of connected line segments. It also joins the first and last vertices. gl.TRIANGLES It is used to draw a series of separate triangles. gl.TRIANGLE_STRIP It is used to draw a series of connected triangles in strip fashion. gl.TRIANGLE_FAN It is used to draw a series of connected triangles sharing the first vertex. |
|