DarthMike / indielib-crossplatform

IndieLib is a cross-platform Game Graphics engine. Main focus is OpenGL ES 2.0 for mobile iOS operating system, and OpenGL desktop. **NOT SUPPORTED ANYMORE**
zlib License
61 stars 27 forks source link

Resizing (resetting) window parameters by changing resolution, doesn't maintain viewport aspect ratio #6

Closed M-F-K closed 12 years ago

M-F-K commented 12 years ago

Entities are rescaled and shown from further/closer. New viewport should contain all same view.

Actually there's a problem that the viewPort for us is defined as the window size (resolution), so the viewport changes if window resolution changes. Shouldn't be like that, and user could decide viewport size. Now it's automatically assigned to window size.

DarthMike commented 12 years ago

Relates to #50

DarthMike commented 12 years ago

Closing it because thinking about it this is application logic. Just implemented logic to reset viewPort if it covers all window, to the new window. It's user responsibility to provide different scales etc to maintain aspect ratio or not on the app.