open class GlRoundRect : Gl2dDrawable
GlRoundRect() |
open var vertexArray: FloatBuffer
Returns the array of vertices. To avoid allocations, this returns internal state. The caller must not modify it. |
val coordsPerVertex: Int
Returns the number of position coordinates per vertex. This will be 2 or 3. |
open fun draw(): Unit
Draws this drawable. This function should not be called directly. Instead, this drawable should be passed to some GlProgram. |
|
open fun onViewportSizeChanged(): Unit |
|
fun setCornersPx(corners: Int): Unitfun setCornersPx(topLeft: Int, topRight: Int, bottomLeft: Int, bottomRight: Int): Unit |
|
fun setRect(rect: RectF): Unitfun setRect(left: Float, top: Float, right: Float, bottom: Float): Unit |
fun getBounds(rect: RectF): Unit |