A* Pathfinding Project  4.3.7
The A* Pathfinding Project for Unity 3D
CommandBuilder.Builder Struct Reference

Classes

struct  Vertex
 

Public Member Functions

void AddBox (BoxData box)
 
void AddCircle (CircleData circle)
 
void AddLine (LineData line)
 
int CircleSteps (float3 center, float radius, float maxPixelError)
 Calculate number of steps to use for drawing a circle at the specified point and radius to get less than the specified pixel error. More...
 
void Execute ()
 
void Next (ref UnsafeAppendBuffer.Reader reader)
 

Static Public Member Functions

static unsafe void Add< T > (UnsafeAppendBuffer *buffer, T value)
 
static unsafe void Reserve (UnsafeAppendBuffer *buffer, int size)
 

Public Attributes

NativeArray< UnsafeAppendBuffer > buffers
 
float2 cameraDepthToPixelSize
 
float3 cameraPosition
 
NativeArray< float3 > circleCoordinates
 
NativeArray< Color32 > colorStack
 
int colorStackSize
 
Color32 currentColor
 
float4x4 currentMatrix
 
NativeArray< float4x4 > matrixStack
 
int matrixStackSize
 
float3 maxBounds
 
float3 minBounds
 
unsafe Bounds * outBounds
 
unsafe UnsafeAppendBuffer * outlineTriangles
 
unsafe UnsafeAppendBuffer * outlineVertices
 
unsafe UnsafeAppendBuffer * solidTriangles
 
unsafe UnsafeAppendBuffer * solidVertices
 

Static Public Attributes

static readonly int [] BoxTriangles
 
static readonly float4 [] BoxVertices
 

Member Function Documentation

◆ Add< T >()

static unsafe void Add< T > ( UnsafeAppendBuffer *  buffer,
value 
)
static
Type Constraints
T :struct 

◆ AddBox()

void AddBox ( BoxData  box)

◆ AddCircle()

void AddCircle ( CircleData  circle)

◆ AddLine()

void AddLine ( LineData  line)

◆ CircleSteps()

int CircleSteps ( float3  center,
float  radius,
float  maxPixelError 
)

Calculate number of steps to use for drawing a circle at the specified point and radius to get less than the specified pixel error.

◆ Execute()

void Execute ( )

◆ Next()

void Next ( ref UnsafeAppendBuffer.Reader  reader)

◆ Reserve()

static unsafe void Reserve ( UnsafeAppendBuffer *  buffer,
int  size 
)
static

Member Data Documentation

◆ BoxTriangles

readonly int [] BoxTriangles
static
Initial value:
= {
0, 1, 5,
0, 5, 4,
7, 3, 2,
7, 2, 6,
0, 1, 3,
0, 3, 2,
4, 5, 7,
4, 7, 6,
1, 3, 7,
1, 7, 5,
0, 2, 6,
0, 6, 4,
}

◆ BoxVertices

readonly float4 [] BoxVertices
static
Initial value:
= {
new float4(-1, -1, -1, 1),
new float4(-1, -1, +1, 1),
new float4(-1, +1, -1, 1),
new float4(-1, +1, +1, 1),
new float4(+1, -1, -1, 1),
new float4(+1, -1, +1, 1),
new float4(+1, +1, -1, 1),
new float4(+1, +1, +1, 1),
}

◆ buffers

NativeArray<UnsafeAppendBuffer> buffers

◆ cameraDepthToPixelSize

float2 cameraDepthToPixelSize

◆ cameraPosition

float3 cameraPosition

◆ circleCoordinates

NativeArray<float3> circleCoordinates

◆ colorStack

NativeArray<Color32> colorStack

◆ colorStackSize

int colorStackSize

◆ currentColor

Color32 currentColor

◆ currentMatrix

float4x4 currentMatrix

◆ matrixStack

NativeArray<float4x4> matrixStack

◆ matrixStackSize

int matrixStackSize

◆ maxBounds

float3 maxBounds

◆ minBounds

float3 minBounds

◆ outBounds

unsafe Bounds* outBounds

◆ outlineTriangles

unsafe UnsafeAppendBuffer* outlineTriangles

◆ outlineVertices

unsafe UnsafeAppendBuffer* outlineVertices

◆ solidTriangles

unsafe UnsafeAppendBuffer* solidTriangles

◆ solidVertices

unsafe UnsafeAppendBuffer* solidVertices

The documentation for this struct was generated from the following file: