Panerox
Member
|
Aspect Display
I can't switch the Aspect Display (D.aspectDisplay() .
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 |
|
Esenthel
Administrator
|
RE: Aspect Display
well value of 0 is incorrect for the aspect
it should be more like 4.0f/3 or 16.0f/10, or some other
|
|
12-23-2009 03:37 PM |
|
Panerox
Member
|
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 |
|
Esenthel
Administrator
|
RE: Aspect Display
Sorry, yes you're right, I'll fix this for the next release
|
|
12-23-2009 04:23 PM |
|
Panerox
Member
|
RE: Aspect Display
Thanks!
|
|
12-23-2009 04:25 PM |
|
Esenthel
Administrator
|
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 |
|
Panerox
Member
|
RE: Aspect Display
Fixed!
Thanks!
|
|
12-29-2009 09:18 AM |
|