To use the TargetingCrosshairs class: 1) Set the draw root using setDrawRoot() 2) Call start() with the starting pixel co-ordinates 3) Call update() with the ending pixel co-ordinates 4) Call stop() to end the drawing.
#include
<class_crosshairs_1_1_targeting_crosshairs.h>
Public Member Functions |
|
| __init__ () | |
| __del__ () | |
| isActive () | |
| setDrawRoot () | |
| start () | |
| Starts the drawing of the crosshairs.
|
|
| update () | |
| Updates the crosshair. |
|
| draw () | |
| Draws the crosshairs at the given position.
|
|
| stop () | |
| Stops the drawing of the crosshair. |
|
| Crosshairs.TargetingCrosshairs.__init__ | ( | ) |
| Crosshairs.TargetingCrosshairs.__del__ | ( | ) |
| Crosshairs.TargetingCrosshairs.isActive | ( | ) |
| Crosshairs.TargetingCrosshairs.setDrawRoot | ( | ) |
| Crosshairs.TargetingCrosshairs.start | ( | ) |
Starts the drawing of the crosshairs.
| Crosshairs.TargetingCrosshairs.update | ( | ) |
Updates the crosshair.
The co-ordinates given should be the end (cursor) co-ordinates in pixels.
| Crosshairs.TargetingCrosshairs.draw | ( | ) |
Draws the crosshairs at the given position.
| Crosshairs.TargetingCrosshairs.stop | ( | ) |
Stops the drawing of the crosshair.