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
mvMat
public Matrixf mvMat
Field Value
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
capiICoreClientAPIcolorint
Returns
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
capiICoreClientAPIcolorint
Returns
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
capiICoreClientAPIposxdoubleposydoubleposzdoublescalexfloatscaleyfloatscalezfloatlineWidthfloatcolorVec4f
Render(ICoreClientAPI, Matrixf, float, Vec4f)
public void Render(ICoreClientAPI capi, Matrixf mat, float lineWidth = 1.6, Vec4f color = null)
Parameters
capiICoreClientAPImatMatrixflineWidthfloatcolorVec4f