Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
Drawable2d

Class Drawable2d

Hierarchy

java.lang.Object

Package
com.android.grafika.gles

Overview

Base class for stuff we like to draw.

Constructors

Drawable2d( Drawable2d.Prefab shape )

Prepares a drawable from a "pre-fabricated" shape definition.

Does no EGL/GL operations, so this can be done at any time.

public Drawable2d(Drawable2d.Prefab shape)

Constructor Parameters

shape

Methods

getVertexArray()

Returns the array of vertices.

To avoid allocations, this returns internal state. The caller must not modify it.

public java.nio.FloatBuffer getVertexArray()

getTexCoordArray()

Returns the array of texture coordinates.

To avoid allocations, this returns internal state. The caller must not modify it.

public java.nio.FloatBuffer getTexCoordArray()

getVertexCount()

Returns the number of vertices stored in the vertex array.

public int getVertexCount()

getVertexStride()

Returns the width, in bytes, of the data for each vertex.

public int getVertexStride()

getTexCoordStride()

Returns the width, in bytes, of the data for each texture coordinate.

public int getTexCoordStride()

getCoordsPerVertex()

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

public int getCoordsPerVertex()

toString()

public java.lang.String toString()

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section