bnoazx005 / TDEngine2

TDEngine2 is a cross-platform game engine
Apache License 2.0
18 stars 4 forks source link

[Refactor] Redesign work with IWindowSystem #49

Closed bnoazx005 closed 4 years ago

bnoazx005 commented 4 years ago

Description

The usage of IWindowSystem become fullfiled with problems when switches between GAPIs. The main reason is differences between back buffers implementations per GAPI. For DirectX it makes no sense, but OpenGL works with client area only.

So the solution is to clarify and unify pipeline of usage GetWidth and GetHeight for IWindowSystem. Now they will mean client area's sizes and outter sizes of the window will be bigger.

bnoazx005 commented 4 years ago

Done in 08ce6090189d037b29f19c4acbdd4693b0aa160c