Index  

trap_DebugPolygonCreate

Description

Creates a solid coloured permanent polygon in the renderer (and world) based on the given array of vertices/points.

Prototype

    int trap_DebugPolygonCreate(
        int color,
        int numPoints,
        vec3_t *points
    );

Parameters

color : the color of the polygon to create.
numPoints : number of points.
points : polygon points.

Remarks

This function should be disabled, but it may still work.
In Q3 1.31, only a single debug polygon can be displayed at once.
Calling trap_DebugPolygonCreate to draw a second polygon causes none of them to be drawn on the screen.
Delete the old polygon before trying to draw the new one.

Return value

Returns a reference handle to the polygon as it appears in the renderlist.

See also

trap_DebugPolygonDelete

Author(s)

Timbo, TimOtholt


QuakeIII trap calls reference