I can try but the problem is that I cannot grab what stands behind these numbers...
graphics.width and graphics.height is probably (I hope) screen size of my laptop (which is 1280 x 800)
next we divide screen width by 1280 and height by 800, but what those 1280 and 800 represents? size of what?
next multiply by zoom factor Min of both...
Also line before that which sets Ortho size:
camera_->SetOrthoSize((float)graphics->GetHeight() * PIXEL_SIZE);
I don't get it...
Say I have made 2 images for my game which should be played only in landscape mode:
one is a background of size 2280 x 1520
another is a hero of size 800 x 600 positioned in the center of safe-zone
And I want my safe-zone to be of size 1920 x 1280, that's the game area that will always be shown on any device out there
How to make it work properly on different devices? I know how to do it on another engine, but have no clue how to accomplish this with Urho3D.