IGUISkin::SetColor

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
magicaxis
Posts: 12
Joined: Sun Jan 08, 2012 4:19 am

IGUISkin::SetColor

Post by magicaxis »

Dumb stupid dumb dumb question, but I have been stuck on this for a friggin hour and a half.

can someone please post some code that uses IGUISkin::SetColor properly?

This is as close as i've got:

Code: Select all

        gui::IGUISkin* TheSkin;
        TheSkin->setColor(gui::EGUI_DEFAULT_COLOR::EGDC_3D_DARK_SHADOW, irr::video::SColor::SColor      (255, 255, 255, 255));
        guienv->setSkin(TheSkin);
Cheers
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: IGUISkin::SetColor

Post by serengeor »

magicaxis wrote:Dumb stupid dumb dumb question, but I have been stuck on this for a friggin hour and a half.

can someone please post some code that uses IGUISkin::SetColor properly?

This is as close as i've got:

Code: Select all

        gui::IGUISkin* TheSkin;
        TheSkin->setColor(gui::EGUI_DEFAULT_COLOR::EGDC_3D_DARK_SHADOW, irr::video::SColor::SColor      (255, 255, 255, 255));
        guienv->setSkin(TheSkin);
Cheers
All I can say is

Code: Select all

        gui::IGUISkin* TheSkin;
        TheSkin->s.......
KABOOM :roll:
Working on game: Marrbles (Currently stopped).
magicaxis
Posts: 12
Joined: Sun Jan 08, 2012 4:19 am

Re: IGUISkin::SetColor

Post by magicaxis »

...I don't get it
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: IGUISkin::SetColor

Post by mongoose7 »

Do you get?:

Code: Select all

gui::IGUISkin* TheSkin = 0;
TheSkin->s.......
Kaboom!
magicaxis
Posts: 12
Joined: Sun Jan 08, 2012 4:19 am

Re: IGUISkin::SetColor

Post by magicaxis »

yeah, the problem is in line 2, i got it :) i just cant figure out what it wants in the friggin parameter list! The enum it asks for is apparently undefined, the colour isnt the right format, all kinds of stuff :(
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: IGUISkin::SetColor

Post by hybrid »

You're also using wrong enum names (enums are not defined as part of the enum, but the surrounding block, i.e. namespace or class) and you're using an explicit constructor reference instead of the class name for the SColor (i.e. one SColor to much). You really have to start a few steps earlier in C++ instead of directly jumping into all the features at once. Maybe read a good book and do some tutorials on basic C++ things first, then start over with 3d programming.
Post Reply