Class QuadMeshUtil
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
Utility class for simple quad meshes
public class QuadMeshUtil
- Inheritance
-
QuadMeshUtil
- Inherited Members
- Extension Methods
Methods
GetCustomQuad(float, float, float, float, float, byte, byte, byte, byte)
Returns a single vertical quad mesh at given position, size and color
public static MeshData GetCustomQuad(float x, float y, float z, float width, float height, byte r, byte g, byte b, byte a)
Parameters
Returns
GetCustomQuadHorizontal(float, float, float, float, float, byte, byte, byte, byte)
Returns a single horziontal quad mesh with given params
public static MeshData GetCustomQuadHorizontal(float x, float y, float z, float width, float length, byte r, byte g, byte b, byte a)
Parameters
Returns
GetCustomQuadModelData(float, float, float, float, float)
Quad without rgba, with uv
public static MeshData GetCustomQuadModelData(float x, float y, float z, float dw, float dh)
Parameters
Returns
GetCustomQuadModelData(float, float, float, float, float, float, float, float, byte, byte, byte, byte)
Returns a custom quad mesh with the given params.
public static MeshData GetCustomQuadModelData(float u, float v, float u2, float v2, float dx, float dy, float dw, float dh, byte r, byte g, byte b, byte a)
Parameters
Returns
GetQuad()
Returns a single vertical quad mesh of with vertices going from -1/-1 to 1/1 With UV, without RGBA
public static MeshData GetQuad()