Hello,
I am trying add a picture into the HUD, but everytime I am
getting a orange-black texture (texture not found).
I defined it already in cg_local.h:
qhandle_t crosshair;
and cg_main.c:
cgs.media.crosshair = trap_R_RegisterShader( "images/2d/crosshair" );
and than i am trying to get the crosshair on the screen in cg_draw.c:
hShader = cgs.media.crosshair;
trap_R_DrawStretchPic( x + 0.5 * (cg.refdef_current->width - w), y + 0.5 * (cg.refdef_current->height - h), w, h, 0, 0, 1, 1, hShader );
Could you help me please?
Greet IgelHaut
