开发者

How can I scale multiple windows with fixed aspect ratio so that they cover maximum of monitor without overlapping

My question is in my title. I am trying to develop a logic so that I can scale fixed开发者_Go百科 aspect ratio windows to cover most of the screen without overlapping eachother. There could be two three or four windows. There could be an alignment parameter also.


You my friend will want to start reading this

Optimal Layout Algorithm

this is a common problem in 2d game development ... think about the problem of how to pack sprites onto a sprite sheet. IE it well understood in 2d especvially seeing a you are dealing with rectangles. I am assuming that they are fixed aspect ratio and different sizes or else its simple maths. If i am wrong just shout and i will give you an algorithm.

There is another question on here about the

I don't want to go on and on because that link will lead you to where you want to be ...

this shuold be interesting http://primes.utm.edu/glossary/xpage/SieveOfEratosthenes.html

there was a good question bout the sieve ... well worth a read also Help speed up this algorithm? Sieve of Eratosthenes

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜