I am running the View3D demo code under Visual Studio 2005 using the Windows Mobile 5.0 Smartphone SDK. When I render the 3D model it always renders in a square area in the center on the screen surrounded by a black frame in both the emulator and on the device (Samsung Blackjack). I can not get it to using the full screen for displaying the model. My init code looks like this
I saw a reference to ERS_REQUIREHIGHRES in this forum, but I believe it has been depricated.
Can someone help me??
- Code:
//Configure framework
ERESULT ClassMain::OnFrameworkConfig(EFRAMEWORKCONFIG *config)
{
config->maxfps = 60; //Limit the maximum frames per second by 60
config->flags = 0; //No extra flag options
config->smartfps = true; //Enable smart fps lock managing
return(E_OK);
}
//Configure display
ERESULT ClassMain::OnDisplayConfig(EDISPLAYCONFIG *config)
{
ClassEStd::StrCpy(config->caption, "View 3D");
config->icon = IDI_MAIN;
config->width = GetSystemMetrics(SM_CXSCREEN);
config->height = GetSystemMetrics(SM_CYSCREEN);
config->orientation = DOR_AUTO;
config->engineconsole = false;
config->fullscreen = true;
config->fullscreenmouse = true;
return(E_OK);
}
I saw a reference to ERS_REQUIREHIGHRES in this forum, but I believe it has been depricated.
Can someone help me??