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

- File List
- File Members

# src/drawstuff/helperFunctions.h

Go to the documentation of this file.

    00001 #ifndef HELPERFUNCTIONS_H_
    00002 #define HELPERFUNCTIONS_H_
    00003
    00004 #include "../config.h"
    00005 #include "../typedefs.h"
    00006
    00007 //color constants to use with drawing functions
    00008 static const float RED[3] = {1,0,0};
    00009 static const float GREEN[3] = {0,1,0};
    00010 static const float BLUE[3] = {0,0,1};
    00011 static const float VIOLET[3] = {1,0,1};
    00012 static const float YELLOW[3] = {1,1,0};
    00013 static const float LIGHTBLUE[3] = {0,1,1};
    00014 static const float WHITE[3] = {1,1,1};
    00015 static const float LIGHTGREY[3] = {0.6, 0.6, 0.6};
    00016 static const float DARKGREY[3] = {0.3, 0.3, 0.3};
    00017 static const float BLACK[3] = {0,0,0};
    00018
    00020 void dsDrawPolygon(const Polygon &p, const float* aColor = NULL);
    00022 void dsDrawVector(const dReal* position, const dReal* direction, const float* aColor = NULL);
    00024 void dsDrawVector(const Vector3r &position, const Vector3r &direction, const float* aColor = NULL);
    00026 void dsDrawVector(const PVector3r &pv, const float* aColor = NULL);
    00028 void dsDrawLine(const Line &l, const float* aColor = NULL);
    00030 void dsDrawPoint(const dReal* position, const float* aColor = NULL);
    00032 void dsDrawPoint(const Vector3r &position, const float* aColor = NULL);
    00033
    00034 #endif /*HELPERFUNCTIONS_H_*/