BWAPI
Functions
SPAR/AIModule/SparAIModule/Utils/BresenhamCircle.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class Functor >
void BresenhamCircle (Functor &functor, int radius, bool filled)
 Utility function that draws a circle using Bresenham's algorithm.

Function Documentation

template<class Functor >
void BresenhamCircle ( Functor &  functor,
int  radius,
bool  filled 
)

Utility function that draws a circle using Bresenham's algorithm.

Template Parameters:
Functorthe type of binary functor that should be used.
Parameters:
functorthe binary functor that will be called everytime a pixel should be drawn.
radiusthe radius of the circle to draw.
filledtrue if the circle should be filled, false if only the border should be drawn.

Here is the call graph for this function:

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines