Api Sandbox SandboxBaseExtensions
class

SandboxBaseExtensions

public static abstract sealed class SandboxBaseExtensions

Extensions for Surfaces

Methods

static this Void Add(VertexBuffer self, Vector3 pos)

Add a vertex using this position and everything else from Default

static this Void Add(VertexBuffer self, Vector3 pos, Vector2 uv)

Add a vertex using this position and UV, and everything else from Default

static this Void AddTriangle(VertexBuffer self, Vertex a, Vertex b, Vertex c)

Add a triangle to the vertex buffer. Will include indices if they're enabled.

static this Void AddQuad(VertexBuffer self, Rect rect)

Add a quad to the vertex buffer. Will include indices if they're enabled.

static this Void AddQuad(VertexBuffer self, Vertex a, Vertex b, Vertex c, Vertex d)

Add a quad to the vertex buffer. Will include indices if they're enabled.

static this Void AddQuad(VertexBuffer self, Vector3 a, Vector3 b, Vector3 c, Vector3 d)

Add a quad to the vertex buffer. Will include indices if they're enabled.

static this Void AddQuad(VertexBuffer self, Ray origin, Vector3 width, Vector3 height)

Add a quad to the vertex buffer. Will include indices if they're enabled.

static this Void AddCube(VertexBuffer self, Vector3 center, Vector3 size, Rotation rot, Color32 color = null)

Add a cube to the vertex buffer. Will include indices if they're enabled.

Assembly: Base Library Namespace: Sandbox Full Name: Sandbox.SandboxBaseExtensions