Перейти к основному содержанию

RenderMesh

Index

Interfaces

GuiRenderMesh

GuiRenderMesh:

rx

rx: number

ry

ry: number

rz

rz: number

x

x: number

y

y: number

z

z: number

draw

  • draw(gl: GL10): void
  • Parameters

    • gl: GL10

    Returns void

loadBitmap

  • loadBitmap(bitmap: Bitmap): void
  • Parameters

    • bitmap: Bitmap

    Returns void

setColors

  • setColors(colors: number[]): void
  • Parameters

    • colors: number[]

    Returns void

setIndices

  • setIndices(indices: number[]): void
  • Parameters

    • indices: number[]

    Returns void

setTextureCoordinates

  • setTextureCoordinates(textureCoords: number[]): void
  • Parameters

    • textureCoords: number[]

    Returns void

setVertices

  • setVertices(vertices: number[]): void
  • Parameters

    • vertices: number[]

    Returns void

ImportParams

ImportParams:

Object used in RenderMesh.importFromFile and one of RenderMesh constructors. Here you can put some additional parameters, that will be applied to the mesh, when the file is being imported.

optionalclear

clear?: boolean

If true, all existing vertices of the mesh are deleted before the file is imported.

optionalinvertV

invertV?: boolean

If true, vertex of the texture is inverted.

optionalnoRebuild

noRebuild?: boolean

If true, Minecraft won't be forced to rebuild the following RenderMesh before the file is imported.

optionalscale

scale?: [number, number, number]

Additional scale along x, y and z axis.

optionaltranslate

translate?: [number, number, number]

Additional translation along x, y and z axis.

ReadOnlyVertexData

ReadOnlyVertexData:

readonlycolors

colors: Array<number>

readonlydataSize

dataSize: number

readonlyindices

indices: Array<number>

readonlyuvs

uvs: Array<number>

readonlyvertices

vertices: Array<number>