RRMeshRenderable

Objective-C

@interface RRMeshRenderable : RRRenderable

Swift

class RRMeshRenderable : RRRenderable

A renderable that renders a mesh that can optionally be textured

  • Default initializer

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Swift

    init()
  • Initializer provided a mesh instance to render

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMesh3D:(nonnull RRMesh3D *)mesh;

    Swift

    init(mesh3D mesh: RRMesh3D)

    Parameters

    mesh

    The mesh instance that should be rendered using this renderable instance

  • Setter for the mesh texture image

    Declaration

    Objective-C

    - (void)setTexture:(nonnull RRImage *)texture;

    Swift

    func setTexture(_ texture: RRImage)

    Parameters

    texture

    The mesh texture image that is rendered on the mesh faces based on the vertex UV coordinates

  • Setter for the mesh color

    Declaration

    Objective-C

    - (void)setColor:(nonnull UIColor *)color;

    Swift

    func setColor(_ color: UIColor)

    Parameters

    color

    The color the mesh should be rendered in for non-textured meshes

  • Initializer provided a mesh instance to render

    Declaration

    Objective-C

    - (void)setMesh3D:(nonnull RRMesh3D *)mesh3D;

    Swift

    func setMesh3D(_ mesh3D: RRMesh3D)

    Parameters

    mesh3D

    The mesh instance that should be rendered using this renderable instance