Simple Problem: skin->setSize

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
Asheh
Posts: 14
Joined: Tue Sep 14, 2004 7:27 pm

Simple Problem: skin->setSize

Post by Asheh »

Having a problem with

IGUISkin::setSize()

I use it like so:

skin->setSize(dimension2d<s32>(20, 20))

ive also tried
skin->setSize(20)

But Im getting the error
C:\Projects\Irr Test\Root.cpp(26) : error C2660: 'setSize' : function does not take 1 parameters


Thanx!

Ash.
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

Code: Select all

virtual void irr::gui::IGUISkin::setSize  	(   	s32   	  size  	)   	 [pure virtual]
So you'll have to use:

Code: Select all

skin->setSize(irr::s32(20));
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
Asheh
Posts: 14
Joined: Tue Sep 14, 2004 7:27 pm

Post by Asheh »

C:\Projects\Irr Test\Root.cpp(26) : error C2660: 'setSize' : function does not take 1 parameters

That didnt work either

Code: Select all

	IGUISkin* skin = guienv->getSkin();
	IGUIFont *newFnt = guienv->getFont("tahoma.ttf");
	if(newFnt)
	{
		skin->setFont(newFnt);
		skin->setSize(irr::s32(20)); 
	}
Post Reply