Table of Contents

Class WireframeCube

Namespace
Vintagestory.Client.NoObf
Assembly
VintagestoryAPI.dll
public class WireframeCube
Inheritance
WireframeCube
Inherited Members
Extension Methods

Constructors

WireframeCube()

public WireframeCube()

Fields

modelRef

public MeshRef modelRef

Field Value

MeshRef

mvMat

public Matrixf mvMat

Field Value

Matrixf

Methods

CreateCenterOriginCube(ICoreClientAPI, int)

Creates a cube mesh with edge points -1/-1/-1 and 1/1/1

public static WireframeCube CreateCenterOriginCube(ICoreClientAPI capi, int color = -2147483648)

Parameters

capi ICoreClientAPI
color int

Returns

WireframeCube

CreateUnitCube(ICoreClientAPI, int)

Creates a cube mesh with edge points 0/0/0 and 1/1/1

public static WireframeCube CreateUnitCube(ICoreClientAPI capi, int color = -2147483648)

Parameters

capi ICoreClientAPI
color int

Returns

WireframeCube

Dispose()

public void Dispose()

Render(ICoreClientAPI, double, double, double, float, float, float, float, Vec4f)

public void Render(ICoreClientAPI capi, double posx, double posy, double posz, float scalex, float scaley, float scalez, float lineWidth = 1.6, Vec4f color = null)

Parameters

capi ICoreClientAPI
posx double
posy double
posz double
scalex float
scaley float
scalez float
lineWidth float
color Vec4f

Render(ICoreClientAPI, Matrixf, float, Vec4f)

public void Render(ICoreClientAPI capi, Matrixf mat, float lineWidth = 1.6, Vec4f color = null)

Parameters

capi ICoreClientAPI
mat Matrixf
lineWidth float
color Vec4f