Skip to content

Instantly share code, notes, and snippets.

@xeekworx
Last active July 28, 2018 18:47
Show Gist options
  • Save xeekworx/fbf39e60c2b20ff575909e131e02690b to your computer and use it in GitHub Desktop.
Save xeekworx/fbf39e60c2b20ff575909e131e02690b to your computer and use it in GitHub Desktop.
nvgTriangle
void nvgTriangle(NVGcontext * ctx, float x1, float y1, float x2, float y2, float x3, float y3)
{
nvgMoveTo(ctx, x1, y1);
nvgLineTo(ctx, x2, y2);
nvgLineTo(ctx, x3, y3);
nvgClosePath(ctx);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment