gwnavruntime/collision/collisionraycastquerydisplaylistbuilder.h Source File
Go to the documentation of this file.
8 #ifndef Navigation_CollisionRayCastQuery_DisplayListBuilder_H
9 #define Navigation_CollisionRayCastQuery_DisplayListBuilder_H
17 class CollisionRayCastQueryDisplayListBuilder :
public IDisplayListBuilder
20 virtual void DoBuild(ScopedDisplayList* displayList,
char* blob,
KyUInt32 = 0)
22 const CollisionRayCastQueryBlob* queryBlob = (CollisionRayCastQueryBlob*)blob;
24 CollisionRayCastQueryOutputBlob* queryOutputBlob = queryBlob->m_queryOutput.
Ptr();
25 if (queryOutputBlob != NULL)
27 float arrowHalfWidth = 0.05f;
29 VisualShapeColor rayShapeColor;
30 VisualShapeColor triangleShapeColor;
32 switch(queryOutputBlob->GetResult())
37 displayList->PushArrow(queryBlob->m_startPos3f, queryBlob->m_endPos3f, arrowHalfWidth, rayShapeColor, 3.0f, 0.1f);
38 displayList->PushLine(queryBlob->m_startPos3f, queryBlob->m_endPos3f, rayShapeColor.m_triangleColor);
44 displayList->PushArrow(queryBlob->m_startPos3f, queryBlob->m_endPos3f, arrowHalfWidth, rayShapeColor, 3.0f, 0.1f);
45 displayList->PushLine(queryBlob->m_startPos3f, queryBlob->m_endPos3f, rayShapeColor.m_triangleColor);
57 #endif // Navigation_CollisionRayCastQuery_DisplayListBuilder_H
Definition: SF_RefCount.h:377
static const VisualColor Lime
Represents the color with RGBA values ( 0, 255, 0, 255).
Definition: visualcolor.h:172
static const VisualColor Red
Represents the color with RGBA values (255, 0, 0, 255).
Definition: visualcolor.h:209
Definition: gamekitcrowddispersion.h:20
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36