MCPcopy Create free account
hub / github.com/carbonengine/trinity / DrawAxis

Method DrawAxis

trinity/Tr2DebugRenderer.cpp:658–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658void Tr2DebugRenderer::DrawAxis( Tr2DebugObjectReference owner, const Matrix& transform, Effect effect )
659{
660 DrawArrow( owner, transform.GetTranslation(), transform.GetTranslation() + transform.GetX(), 0, 0.2f, 10, effect, Color( 1, 0, 0, 1 ) );
661 DrawArrow( owner, transform.GetTranslation(), transform.GetTranslation() + transform.GetY(), 0, 0.2f, 10, effect, Color( 0, 1, 0, 1 ) );
662 DrawArrow( owner, transform.GetTranslation(), transform.GetTranslation() + transform.GetZ(), 0, 0.2f, 10, effect, Color( 0, 0, 1, 1 ) );
663}
664
665void Tr2DebugRenderer::DrawExtrusionShape( Tr2DebugObjectReference owner, const Matrix& transform, const Vector2* vertices, const Vector2* normals, uint32_t vertexCount, uint32_t segments, Effect effect, Tr2DebugColor color )
666{

Callers 3

RenderDebugInfoMethod · 0.80
RenderDebugInfoMethod · 0.80
RenderDebugInfoMethod · 0.80

Calls 4

GetTranslationMethod · 0.80
GetXMethod · 0.45
GetYMethod · 0.45
GetZMethod · 0.45

Tested by

no test coverage detected