how get values

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
Guest

how get values

Post by Guest »

I want to get the values the Screen and the Position of mouse, but I use the functions, getScreenSize() and getPosition() and I want the values X and Y the position and the length the Screen.

But I do:

int valuex = (int)driver.getScreenSize().X;

and

int valuex = driver.getScreenSize().X;

and the show the message error:

inconvertible types
found: bindenlicht.Position2di
required: int
int valuex = (int)driver.getScreenSize().X;

help me, thanks
irado
Posts: 22
Joined: Mon Jun 20, 2005 4:46 pm

Post by irado »

sorry !!!

this source is bindenlicht, I post the problem here because the source seemed the irrlicht.
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

a

position2di x;

and a

int x;

are different things...

x.y and x.x

position2di contains 2 integers and int x,y; might work also.
Post Reply