GlPolygon

open class GlPolygon(sides: Int) : Gl2dDrawable

Functions

draw
Link copied to clipboard
common
open override fun draw()
Draws this drawable.
getBounds
Link copied to clipboard
common
fun getBounds(rect: RectF)
release
Link copied to clipboard
common
open fun release()
setViewportSize
Link copied to clipboard
common
fun setViewportSize(width: Int, height: Int)

Properties

center
Link copied to clipboard
common
var center: PointF
centerX
Link copied to clipboard
common
var centerX: Float = 0F
centerY
Link copied to clipboard
common
var centerY: Float = 0F
coordsPerVertex
Link copied to clipboard
common
override val coordsPerVertex: Int = 2
Returns the number of position coordinates per vertex.
modelMatrix
Link copied to clipboard
common
val modelMatrix: FloatArray
The model matrix for this object.
radius
Link copied to clipboard
common
var radius: Float = 1F
The polygon radius.
rotation
Link copied to clipboard
common
var rotation: Float = 0F
vertexArray
Link copied to clipboard
common
open override var vertexArray: FloatBuffer
Returns the array of vertices.
vertexArrayVersion
Link copied to clipboard
common
var vertexArrayVersion: Int = 0
vertexCount
Link copied to clipboard
common
open val vertexCount: Int
Returns the number of vertices stored in the vertex array.
vertexStride
Link copied to clipboard
common
open val vertexStride: Int
Returns the width, in bytes, of the data for each vertex.
viewportHeight
Link copied to clipboard
common
var viewportHeight: Int
viewportWidth
Link copied to clipboard
common
var viewportWidth: Int

Inheritors

GlCircle
Link copied to clipboard
GlSquare
Link copied to clipboard
GlTriangle
Link copied to clipboard