library / com.otaliastudios.opengl.draw / GlCircle

GlCircle

open class GlCircle : GlPolygon

Constructors

<init>

GlCircle()

Inherited Properties

center

var center: PointF

centerX

var centerX: Float

centerY

var centerY: Float

radius

var radius: Float

The polygon radius. The value 1 is half the smallest viewport dimension. For example, a GlCircle with radius 1 will touch the viewport borders exactly.

rotation

var rotation: Float

vertexArray

open var vertexArray: FloatBuffer

Returns the array of vertices. To avoid allocations, this returns internal state. The caller must not modify it.

Inherited Functions

draw

open fun draw(): Unit

Draws this drawable. This function should not be called directly. Instead, this drawable should be passed to some GlProgram.

onViewportSizeChanged

open fun onViewportSizeChanged(): Unit