mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-01 22:45:32 +00:00
Debug draw duPolyToCol custom function (#253)
Add duDebugDraw::duPolyToCol to allow user to pick polygon color.
This commit is contained in:
committed by
Jakob Botsch Nielsen
parent
dfd40071c5
commit
ad6e5de2e9
@@ -66,6 +66,11 @@ struct duDebugDraw
|
||||
|
||||
/// End drawing primitives.
|
||||
virtual void end() = 0;
|
||||
|
||||
/// Compute a color for given polygon.
|
||||
/// @param poly [in] the polygon to compute color for.
|
||||
/// @return The color value.
|
||||
virtual unsigned int polyToCol(const struct dtPoly* poly);
|
||||
};
|
||||
|
||||
inline unsigned int duRGBA(int r, int g, int b, int a)
|
||||
|
||||
Reference in New Issue
Block a user