How to draw a crosshair?

BlitzMax Forums/BlitzMax Programming/How to draw a crosshair?

zcbeaton(Posted 2008) [#1]
Hey, I'm using MiniB3D to create a first person shooter and I'm wondering how I draw the crosshair to the screen? I don't see a CreateSprite function á la Blitz3D, and I don't know if I can just use regular Max2D.

Help would be appreciated.


Sledge(Posted 2008) [#2]
CreateSprite() is in there, it just doesn't highlight; You can use Max2D stuff between BeginMax2D() and EndMax2D().


ImaginaryHuman(Posted 2008) [#3]
DrawLine

or use OpenGL calls to draw a line


QuickSilva(Posted 2008) [#4]
Could I ask why it doesn`t highlight? I find it really inconsistent when some keywords highlight and other do not, TImage for example.

Am I alone in this or are there others who want this fixed? Surely this is something minor that wouldn`t take much time?

Sorry to go off topic.

Jason.


klepto2(Posted 2008) [#5]
If you use the module, then it should highlight it. Try to run docmods (rebuild documentation in the ide).
If you just use the 'import mode' then you will not get any highlighting.

For the crosshair: look above ;)