High Color Texture Flag...

Blitz3D Forums/Blitz3D Programming/High Color Texture Flag...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi,

Shouldn't the 'High Color' texture flag (512) really be called 'True Color'?

Normally the 'High Color' label is used for 16-Bit while 'True Color' is used for 24-Bit and above. The 'High Color' texture flag sets the texture to use 'True Color'...

Got it? No, then run this:
Graphics3D 640,480,16,1
SetBuffer BackBuffer()

texA = CreateTexture(256,256,1+8+512)
texB = CreateTexture(256,256,1+8)

For x = 0 To 255
	grey = x Or (x Shl 8) Or (x Shl 16) Or $FF000000
	For y = 0 To 255
		WritePixel x,y,grey,TextureBuffer(texA)
		WritePixel x,y,grey,TextureBuffer(texB)
	Next
Next

SaveBuffer(TextureBuffer(texA),"24bit.bmp")
SaveBuffer(TextureBuffer(texB),"16Bit.bmp")

End