Jump to content

Crosshairs Image ?


Guest Red Ocktober
 Share

Recommended Posts

Guest Red Ocktober

is there a crossheairs image around anywhere... something you'd use as a gunsight crosshair... with transparent background...

 

i thought there used to be one...

 

 

thx

 

--Mike

Link to comment
Share on other sites

You could rip the DrawCrossHair() function from gamelib:

http://www.leadwerks.com/wiki/index.php?title=GameLib#DrawCrosshair

It's not a image, but vector graphics, but that's in my opinion better since then it scales to all resolutions without quality loss.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

..here's a random one I made, if you decide that vectors are too clean :)

 

TTexture crosshair  = LoadTexture("abstract::crosshair01.dds");
..
//after render 
SetBlend( BLEND_ALPHA );
DrawImage( crosshair, GraphicsWidth()/2 - 32, GraphicsHeight()/2 - 32 );
SetBlend( BLEND_NONE );
//before flip();

Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...