IVideoModeList ?
Posted: Thu Jan 22, 2004 4:52 am
Hi,
I am trying to print the video mode list with a printf statment and am getting problems? How do i do it with this given.
Ok, now how do i print the list or get the info from video_list?
I tried several different things and am not getting any text. Am I not doing something right here?
I am trying to print the video mode list with a printf statment and am getting problems? How do i do it with this given.
Code: Select all
s32 video_count = 0;
s32 i = 0;
device = createDevice(video::EDT_NULL,
core::dimension2d<s32>(0, 0), 16, false, false, NULL);
if(!device)
return 0;
IVideoModeList *video_list = device->getVideoModeList();
video_count = video_list->getVideoModeCount();
for( i = 0; i < video_count; i++)
{
printf(" Item:%i Mode:%s\n", i, video_list);//??
}
video_list->drop();
device->drop();
I tried several different things and am not getting any text. Am I not doing something right here?