HUD HELP PLZ!

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Bos

HUD HELP PLZ!

Post by Bos »

:( :( Well, i'm still having trouble with getting the crosshair to work. what i want to acheive is getting a simple HUD to work. If there is anyone who has made a HUD or knows how to, i think it will not only help me, but alot of other peeps out there using this wonderful engine.

PLZ!
Json
Posts: 5
Joined: Thu Nov 18, 2004 12:16 pm

Post by Json »

Personally Im just making a 2D game but drawing to the screen goes sort of like this:

Code: Select all

		// Load the image
		sPlayer.tImage = gZomfg->gDevice->getVideoDriver()->getTexture("images/pacman.bmp");

		// Set keycolor
		gZomfg->gDevice->getVideoDriver()->makeColorKeyTexture(sPlayer.tImage, position2d<s32>(0,0));

void CGameStatePlaying::drawPlayer(void)
{
	gZomfg->gDevice->getVideoDriver()->draw2DImage(sPlayer.tImage, position2d<s32>(sPlayer.iPositionX, sPlayer.iPositionY), sPlayer.rAnimations[sPlayer.iAnimState], 0, SColor(255,255,255,255), true);
}
Something like that. Have a look at the getTexture and the makeColorKeyTexture functions and also the draw2DImage function I recon :D
Post Reply