Lumos/Source/Lumos/Graphics/Renderers/DebugRenderer.cpp
//Draw Polygon (Renders as a triangle fan, so verts must be arranged in order)
Draw Polygon (Renders as a triangle fan, so verts must be arranged in order)
Draw Polygon ( Renders as a triangle fan so verts must be arranged in order )
void DebugRenderer::DrawPolygon(int n_verts, const glm::vec3* verts, const glm::vec4& colour)
    {
        for(int i = 2; i < n_verts; ++i)
        {
            GenDrawTriangle(false, verts[0], verts[i - 1], verts[i], colour);
        }
    }
void DebugRenderer :: DrawPolygon ( int n_verts , const glm :: vec3 * verts , const glm :: vec4 & colour ) { for ( int i = 2 ; i < n_verts ; ++ i ) { GenDrawTriangle ( false , verts [ 0 ] , verts [ i - 1 ] , verts [ i ] , colour ) ; } }
Draw Polygon (Renders as a triangle fan, so verts must be arranged in order)
Draw Polygon ( Renders as a triangle fan so verts must be arranged in order )