Hi,
I suppose that i can't pass the Irrlitch Device as a parameter of a function. I got some errors trying that. I wanted to do a class' function (for example a menu/button... class) to draw "itself" on the device. How can I do that?
Thanks a lot.
function (irr::IrrlitchDevice *device);
-
- Posts: 6
- Joined: Tue Oct 11, 2005 9:15 pm
Why you can't pass the device as a parameter ???
now you can pass the device like this:
I don't see where the problem is...
It's C++ pointer basics !!!
Code: Select all
void myFunc(IrrlichtDevice* irrdev){
// enter code here
}
Code: Select all
IrrlichtDevice* device = createDevice(EDT_DIRECTX9, dimension2d<s32>(640, 480), 16);
myFunc(device);
It's C++ pointer basics !!!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 6
- Joined: Tue Oct 11, 2005 9:15 pm
-
- Posts: 17
- Joined: Tue Dec 09, 2003 9:03 am
- Location: Germany
-
- Posts: 31
- Joined: Mon Sep 05, 2005 4:47 pm
- Contact:
-
- Posts: 6
- Joined: Tue Oct 11, 2005 9:15 pm