C# LINQ Teaser
Another great interview question.
Will the following code compile and if yes what will be the result of it ?
Read more…
Another great interview question.
Will the following code compile and if yes what will be the result of it ?
Read more…
Sometimes, you’re faced with the problem to cramp as many smaller textures as possible onto a larger texture. Typical cases are lightmaps, which are very small textures with dimensions that usually are not powers of two, or bitmap fonts where you want to try and fit the entire ascii character set onto a texture without wasting much space.
What you need then, is a rectangle packer, an algorithm that arranges as many smaller rectangles on a larger rectangle as can possibly fit.
This is a very simple question with a not so simple answer…
Forget for a second about .NET.
If someone asks you how much is 1.000025 – 0.000025 your answer will probably be “1″ and correct. An easy question, right ?
Now, let’s go back to .NET and check if our calculations are correct.
CSS sprites group multiple images into one composite image and display them using CSS background positioning.
Coming soon…
Recent Comments