High Color Texture Flag...

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

fredborg(Posted 2004) [#1]
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



Rob(Posted 2004) [#2]
This is true.


WolRon(Posted 2004) [#3]
I was just thinking this myself yesterday.


Floyd(Posted 2004) [#4]
On the other hand, we're probably overdue to stop calling 16-bit high color.

With Windows XP I can no longer set my desktop to 8-bit.
And the Control Panel refers to 16 and 32-bit color as Medium and Highest.


Nacra(Posted 2004) [#5]
I screwed up my Nvidia driver the other day and WinXP came back up in 4-bit color mode! Some secret, fallback mode. The UI was barely usable but did remind of the bad, old CGA days.