Share via


Mesh Constructors

Definition

Overloads

Mesh(IntPtr, JniHandleOwnership)
Mesh(MeshSpecification, MeshType, Buffer, Int32, RectF)

Constructor for a non-indexed Mesh.

Mesh(MeshSpecification, MeshType, Buffer, Int32, ShortBuffer, RectF)

Constructor for an indexed Mesh.

Mesh(IntPtr, JniHandleOwnership)

protected Mesh (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.Mesh : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.Mesh

Parameters

javaReference
IntPtr

nativeint

Applies to

Mesh(MeshSpecification, MeshType, Buffer, Int32, RectF)

Constructor for a non-indexed Mesh.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/MeshSpecification;ILjava/nio/Buffer;ILandroid/graphics/RectF;)V", "", ApiSince=34)]
public Mesh (Android.Graphics.MeshSpecification meshSpec, Android.Graphics.MeshType mode, Java.Nio.Buffer vertexBuffer, int vertexCount, Android.Graphics.RectF bounds);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/MeshSpecification;ILjava/nio/Buffer;ILandroid/graphics/RectF;)V", "", ApiSince=34)>]
new Android.Graphics.Mesh : Android.Graphics.MeshSpecification * Android.Graphics.MeshType * Java.Nio.Buffer * int * Android.Graphics.RectF -> Android.Graphics.Mesh

Parameters

meshSpec
MeshSpecification

MeshSpecification used when generating the mesh.

mode
MeshType

Determines what mode to draw the mesh in. Must be one of Mesh#TRIANGLES or Mesh#TRIANGLE_STRIP

vertexBuffer
Buffer

vertex buffer representing through Buffer. This provides the data for all attributes provided within the meshSpec for every vertex. That is, a vertex buffer should be (attributes size * number of vertices) in length to be valid. Note that currently implementation will have a CPU backed buffer generated.

vertexCount
Int32

the number of vertices represented in the vertexBuffer and mesh.

bounds
RectF

bounds of the mesh object.

Attributes

Remarks

Constructor for a non-indexed Mesh.

Java documentation for android.graphics.Mesh.Mesh(android.graphics.MeshSpecification, int, java.nio.Buffer, int, android.graphics.RectF).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Mesh(MeshSpecification, MeshType, Buffer, Int32, ShortBuffer, RectF)

Constructor for an indexed Mesh.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/MeshSpecification;ILjava/nio/Buffer;ILjava/nio/ShortBuffer;Landroid/graphics/RectF;)V", "", ApiSince=34)]
public Mesh (Android.Graphics.MeshSpecification meshSpec, Android.Graphics.MeshType mode, Java.Nio.Buffer vertexBuffer, int vertexCount, Java.Nio.ShortBuffer indexBuffer, Android.Graphics.RectF bounds);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/MeshSpecification;ILjava/nio/Buffer;ILjava/nio/ShortBuffer;Landroid/graphics/RectF;)V", "", ApiSince=34)>]
new Android.Graphics.Mesh : Android.Graphics.MeshSpecification * Android.Graphics.MeshType * Java.Nio.Buffer * int * Java.Nio.ShortBuffer * Android.Graphics.RectF -> Android.Graphics.Mesh

Parameters

meshSpec
MeshSpecification

MeshSpecification used when generating the mesh.

mode
MeshType

Determines what mode to draw the mesh in. Must be one of Mesh#TRIANGLES or Mesh#TRIANGLE_STRIP

vertexBuffer
Buffer

vertex buffer representing through Buffer. This provides the data for all attributes provided within the meshSpec for every vertex. That is, a vertex buffer should be (attributes size * number of vertices) in length to be valid. Note that currently implementation will have a CPU backed buffer generated.

vertexCount
Int32

the number of vertices represented in the vertexBuffer and mesh.

indexBuffer
ShortBuffer

index buffer representing through ShortBuffer. Indices are required to be 16 bits, so ShortBuffer is necessary. Note that currently implementation will have a CPU backed buffer generated.

bounds
RectF

bounds of the mesh object.

Attributes

Remarks

Constructor for an indexed Mesh.

Java documentation for android.graphics.Mesh.Mesh(android.graphics.MeshSpecification, int, java.nio.Buffer, int, java.nio.ShortBuffer, android.graphics.RectF).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to