summaryrefslogtreecommitdiff
path: root/indra/llrender/llrendernavprim.cpp
diff options
context:
space:
mode:
authorprep <none@none>2012-03-21 09:53:32 -0400
committerprep <none@none>2012-03-21 09:53:32 -0400
commit154e569923d0caf99fb0d24af8475731f5ceaf33 (patch)
treedbb397f25b7e02c941e726bd6d0531e47cb3bdee /indra/llrender/llrendernavprim.cpp
parentd3550dfcd64cfc182fd120338d3e7eb25ac339af (diff)
Path-282: Added support for viewing the walkability map for various character types
Diffstat (limited to 'indra/llrender/llrendernavprim.cpp')
-rw-r--r--indra/llrender/llrendernavprim.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llrender/llrendernavprim.cpp b/indra/llrender/llrendernavprim.cpp
index ebc453a32c..21ba29741e 100644
--- a/indra/llrender/llrendernavprim.cpp
+++ b/indra/llrender/llrendernavprim.cpp
@@ -62,6 +62,19 @@ void LLRenderNavPrim::renderTri( const LLVector3& a, const LLVector3& b, const L
gGL.end();
}
//=============================================================================
+void LLRenderNavPrim::renderLLTri( const LLVector3& a, const LLVector3& b, const LLVector3& c, const LLColor4U& color, bool overlayMode ) const
+{
+ LLColor4 cV(color);
+ gGL.color4fv( cV.mV );
+ gGL.begin(LLRender::TRIANGLES);
+ {
+ gGL.vertex3fv( a.mV );
+ gGL.vertex3fv( b.mV );
+ gGL.vertex3fv( c.mV );
+ }
+ gGL.end();
+}
+//=============================================================================
void LLRenderNavPrim::renderNavMeshVB( LLVertexBuffer* pVBO, int vertCnt )
{
pVBO->setBuffer( LLVertexBuffer::MAP_VERTEX | LLVertexBuffer::MAP_COLOR | LLVertexBuffer::MAP_NORMAL );