About Store Forum Documentation Contact



Post Reply 
Aspect Display
Author Message
Panerox Offline
Member

Post: #1
Aspect Display
I can't switch the Aspect Display (D.aspectDisplay()wink.
Probably I do it incorrectly.
I have checked up it on any example from the tuutorial, here a simple insert of a code in function Update. And when I press button Space all vanishes on the screen.

Code:
Bool Update()
{
   if(Kb.bp(KB_ESC))return false;
   if (Kb.br(KB_SPACE))
   {      
       D.aspectDisplay(0);
   }
   CamHandle(1.5,10,CAMH_ZOOM|CAMH_ROT);
   return true;
}
12-23-2009 10:02 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Aspect Display
well value of 0 is incorrect for the aspect smile
it should be more like 4.0f/3 or 16.0f/10, or some other
12-23-2009 03:37 PM
Find all posts by this user Quote this message in a reply
Panerox Offline
Member

Post: #3
RE: Aspect Display
But in your comments:
Code:
Display& aspectDisplay(Flt  aspect_disp           );   Flt  aspectDisplay(){return _aspect_disp    ;} // set/get Display Aspect Ratio          (0=autodetect, 4/3, 5/4, 16/9, 16/10, default=               0)
What then is value by default, and what is necessary for auto detection?
12-23-2009 04:15 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Aspect Display
Sorry, yes you're right, I'll fix this for the next release
12-23-2009 04:23 PM
Find all posts by this user Quote this message in a reply
Panerox Offline
Member

Post: #5
RE: Aspect Display
Thanks!
12-23-2009 04:25 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Aspect Display
the autodetection would work if you set 0 in InitPre, but not later
in the next release the autodetection will work also later (not only when used in InitPre)
12-23-2009 04:26 PM
Find all posts by this user Quote this message in a reply
Panerox Offline
Member

Post: #7
RE: Aspect Display
Fixed!
Thanks!smile
12-29-2009 09:18 AM
Find all posts by this user Quote this message in a reply
Post Reply