IT. Expert System.

Android Reference

Mesh.TriangleMeshBuilder


android.renderscript

Class Mesh.TriangleMeshBuilder

  • Enclosing class:
    Mesh

    Deprecated.
    in API 16 Builder that allows creation of a mesh object point by point and triangle by triangle

    public static class Mesh.TriangleMeshBuilder
    extends Object
    • Constructor Detail

      • Mesh.TriangleMeshBuilder

        public Mesh.TriangleMeshBuilder(RenderScript rs,
                                int vtxSize,
                                int flags)
        Deprecated. in API 16
        Parameters:
        rs - Context to which the mesh will belong.
        vtxSize - specifies whether the vertex is a float2 or float3
        flags - bitfield that is a combination of COLOR, NORMAL, and TEXTURE_0 that specifies what vertex data channels are present in the mesh
    • Method Detail

      • addVertex

        public Mesh.TriangleMeshBuilder addVertex(float x,
                                         float y)
        Deprecated. in API 16 Adds a float2 vertex to the mesh
        Parameters:
        x - position x
        y - position y
        Returns:
        this
      • addVertex

        public Mesh.TriangleMeshBuilder addVertex(float x,
                                         float y,
                                         float z)
        Deprecated. in API 16 Adds a float3 vertex to the mesh
        Parameters:
        x - position x
        y - position y
        z - position z
        Returns:
        this
      • setTexture

        public Mesh.TriangleMeshBuilder setTexture(float s,
                                          float t)
        Deprecated. in API 16 Sets the texture coordinate for the vertices that are added after this method call.
        Parameters:
        s - texture coordinate s
        t - texture coordinate t
        Returns:
        this
      • setNormal

        public Mesh.TriangleMeshBuilder setNormal(float x,
                                         float y,
                                         float z)
        Deprecated. in API 16 Sets the normal vector for the vertices that are added after this method call.
        Parameters:
        x - normal vector x
        y - normal vector y
        z - normal vector z
        Returns:
        this
      • setColor

        public Mesh.TriangleMeshBuilder setColor(float r,
                                        float g,
                                        float b,
                                        float a)
        Deprecated. in API 16 Sets the color for the vertices that are added after this method call.
        Parameters:
        r - red component
        g - green component
        b - blue component
        a - alpha component
        Returns:
        this
      • addTriangle

        public Mesh.TriangleMeshBuilder addTriangle(int idx1,
                                           int idx2,
                                           int idx3)
        Deprecated. in API 16 Adds a new triangle to the mesh builder
        Parameters:
        idx1 - index of the first vertex in the triangle
        idx2 - index of the second vertex in the triangle
        idx3 - index of the third vertex in the triangle
        Returns:
        this
      • create

        public Mesh create(boolean uploadToBufferObject)
        Deprecated. in API 16 Creates the mesh object from the current state of the builder
        Parameters:
        uploadToBufferObject - specifies whether the vertex data is to be uploaded into the buffer object indicating that it's likely not going to be modified and rendered many times. Alternatively, it indicates the mesh data will be updated frequently and remain in script accessible memory


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 76 / 158693818. Delta: 0.03086 с