- Main Page
- Modules
- Classes
- Files
- Related Pages

- File List
- File Members

# src/drawstuff/helperFunctions.cpp File Reference

`#include "helperFunctions.h"`
`#include "../vectorMath/vmath.h"`
`#include "drawstuff.h"`

## Functions
void | dsDrawPolygon (const Polygon &p, const float *aColor)
void | dsDrawVector (const dReal *position, const dReal *direction, const float *aColor)
void | dsDrawVector (const Vector3r &position, const Vector3r &direction, const float *aColor)
void | dsDrawVector (const PVector3r &pv, const float *aColor)
void | dsDrawLine (const Line &l, const float *aColor)
void | dsDrawPoint (const dReal *position, const float *aColor)
void | dsDrawPoint (const Vector3r &position, const float *aColor)

## Function Documentation

void dsDrawLine | ( | const Line & | l,
|  | const float * | aColor = `NULL` |
| ) |  |  |

Draws a line

void dsDrawPoint | ( | const Vector3r & | position,
|  | const float * | aColor = `NULL` |
| ) |  |  |

Draws a point (small box of given color)

void dsDrawPoint | ( | const dReal * | position,
|  | const float * | aColor = `NULL` |
| ) |  |  |

Draws a point (small box of given color)

void dsDrawPolygon | ( | const Polygon & | p,
|  | const float * | aColor = `NULL` |
| ) |  |  |

Draws a polygon

void dsDrawVector | ( | const PVector3r & | pv,
|  | const float * | aColor = `NULL` |
| ) |  |  |

Draws a vector of length direction starting on set position

void dsDrawVector | ( | const Vector3r & | position,
|  | const Vector3r & | direction,
|  | const float * | aColor = `NULL` |
| ) |  |  |

Draws a vector of length direction starting on set position

void dsDrawVector | ( | const dReal * | position,
|  | const dReal * | direction,
|  | const float * | aColor = `NULL` |
| ) |  |  |

Draws a vector of length direction starting on set position