Skip to main content
GameDev.net gamedev.net
šŸ”’ Locked

converting between texture formats..

Started by RavNaz Mar 9, 2003 at 5:25 PM 0 replies 150+ views
Original Post
RavNaz
RavNaz
If I pass data in say D3DFMT_A8R8G8B8 to a texture expecting D3DFMT_R5G6B5 obviously I''ll get crap on the texture. So before doing that I would need to convert the data to the correct format. Is this a simple case of looping through the pixel data and correcting it??

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.