Using lists? I must be dumb.

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
pauly
Posts: 10
Joined: Wed Mar 23, 2005 11:29 am
Location: Belgium
Contact:

Using lists? I must be dumb.

Post by pauly »

I must be dumb. I read the explannation in the manual but that didn't make me anny wiser.

What I'm trying to do is to display all availebel 3dgfx modes with getVideoModeList. But I don't get how to use lists that the returned pointer refers to.

Maybe there is some other documentation that i could look in to. And yes this is my first year with c++ so i'm as noob as they can get. But I'm allready in love with c++ object orented programming. I used to work with 3Dgamestudio (stupid cunny 3D engine costing 49 € and up using lameass c)
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

What do you not understand? You get the list like this:

IVideoModeList* vmlist = device->getVideoModeList();

and then you can acces it via:

vmlist->getVideoModeCount();
vmlist->getDesktopResolution();
vmlist->getDesktopDepth();

and

vmlist->getVideoModeResolution(n);
vmlist->getVideoModeDepth(n);

where n < getVideoModeCount()
It is like it is. And because it is like it is, things are like they are.
pauly
Posts: 10
Joined: Wed Mar 23, 2005 11:29 am
Location: Belgium
Contact:

Post by pauly »

Apparently i got it all wrong. :oops: I thought it would return a list containing the videomodes supported by your 3DGFXcard. like opengl or direct3d
cartoonit
Posts: 286
Joined: Mon Nov 15, 2004 6:36 pm

Post by cartoonit »

Going a bit off topic, but is there a way to get all the supported modes back from the graphics driver???
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

cartoonit wrote:Going a bit off topic, but is there a way to get all the supported modes back from the graphics driver???
I'm not sure if I understand your question. Could you explain further?
It is like it is. And because it is like it is, things are like they are.
cartoonit
Posts: 286
Joined: Mon Nov 15, 2004 6:36 pm

Post by cartoonit »

Well surely you should be able to check what current drivers are setup on a specific machine, for example at Uni most of the computers don't have DirectX 9.0, if creating a driver instance with DirectX 9.0 the application would fall over.

Therefore a list of supported drivers could be returned from the engine???

I know you could just test whether the returned device is NULL or not, but then this means having a selection for each different graphics API - directx 8.0, 9.0 or OpenGL...

Cheez I'm not making any sense this wk....
Post Reply