library / com.otaliastudios.opengl.draw / GlRoundRect

GlRoundRect

open class GlRoundRect : Gl2dDrawable

Constructors

<init>

GlRoundRect()

Properties

vertexArray

open var vertexArray: FloatBuffer

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

Inherited Properties

coordsPerVertex

val coordsPerVertex: Int

Returns the number of position coordinates per vertex. This will be 2 or 3.

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

setCornersPx

fun setCornersPx(corners: Int): Unit
fun setCornersPx(topLeft: Int, topRight: Int, bottomLeft: Int, bottomRight: Int): Unit

setRect

fun setRect(rect: RectF): Unit
fun setRect(left: Float, top: Float, right: Float, bottom: Float): Unit

Inherited Functions

getBounds

fun getBounds(rect: RectF): Unit