Drawable

Drawable

Interface for buffer that can be drawn.
Source:

Methods

drawLineLoop(countopt, offsetopt)

Shortcut to gl.drawArrays( gl.LINE_LOOP, offset, count )
Parameters:
Name Type Attributes Default Description
count uint <optional>
the number of vertices to draw (full buffer is used if omited)
offset uint <optional>
0 the position in buffer to start from.
Source:

drawLines(countopt, offsetopt)

Shortcut to gl.drawArrays( gl.LINES, offset, count )
Parameters:
Name Type Attributes Default Description
count uint <optional>
the number of vertices to draw (full buffer is used if omited)
offset uint <optional>
0 the position in buffer to start from.
Source:

drawLineStrip(countopt, offsetopt)

Shortcut to gl.drawArrays( gl.LINE_STRIP, offset, count )
Parameters:
Name Type Attributes Default Description
count uint <optional>
the number of vertices to draw (full buffer is used if omited)
offset uint <optional>
0 the position in buffer to start from.
Source:

drawPoints(countopt, offsetopt)

Shortcut to gl.drawArrays( gl.POINTS, offset, count )
Parameters:
Name Type Attributes Default Description
count uint <optional>
the number of vertices to draw (full buffer is used if omited)
offset uint <optional>
0 the position in buffer to start from.
Source:

drawTriangleFan(countopt, offsetopt)

Shortcut to gl.drawArrays( gl.TRIANGLE_FAN, offset, count )
Parameters:
Name Type Attributes Default Description
count uint <optional>
the number of vertices to draw (full buffer is used if omited)
offset uint <optional>
0 the position in buffer to start from.
Source:

drawTriangles(countopt, offsetopt)

Shortcut to gl.drawArrays( gl.TRIANGLES, offset, count )
Parameters:
Name Type Attributes Default Description
count uint <optional>
the number of vertices to draw (full buffer is used if omited)
offset uint <optional>
0 the position in buffer to start from.
Source:

drawTriangleStrip(countopt, offsetopt)

Shortcut to gl.drawArrays( gl.TRIANGLE_STRIP, offset, count )
Parameters:
Name Type Attributes Default Description
count uint <optional>
the number of vertices to draw (full buffer is used if omited)
offset uint <optional>
0 the position in buffer to start from.
Source: