Archive

Posts Tagged ‘Tips’

C# Rectangle Packing

July 9th, 2009 Xander 5 comments

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.

Read more…

VN:F [1.9.13_1145]
Rating: 4.3/5 (6 votes cast)

C# The “double” trouble

July 7th, 2009 Xander No comments

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.

Read more…

VN:F [1.9.13_1145]
Rating: 4.3/5 (6 votes cast)

C# Inheritance Question

June 25th, 2009 Xander 13 comments

The following are two simple questions related to C# inheritance.
Please try to give an answer without executing the code, otherwise where is the fun part ?
Read more…

VN:F [1.9.13_1145]
Rating: 4.6/5 (5 votes cast)

SEO Powered by Platinum SEO from Techblissonline
watch free movies