PDA

View Full Version : whats the deal with bitmaps



mdog1234
01-23-2003, 07:08 AM
I have a bitmap that is 600x499 an odd shape. I have heard that textures of all formats have to be square and a power of 2 is this correct.

Deiussum
01-23-2003, 07:11 AM
They have to have dimensions that are a power of 2, but do not have to be square. (e.g. 512x256 is perfectly valid)

Edit: Thought I would clarify a bit.

That restriction is for textures, it is not a restriction on bitmaps, (though I'm guessing you meant BMP files, not bitmaps, which are drawn with glBitmap.) A bitmap is a series of bits, where 0 represents a pixel that is off, and 1 is a pixel that is on.

[This message has been edited by Deiussum (edited 01-23-2003).]

mdog1234
01-23-2003, 07:33 AM
yes I ment .bmp files thanks for your help