Jump to content
  • Advertisement
Sign in to follow this  

about surface's format!

This topic is 3675 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I have two questions listing below: 1. When create a surface, we need to select a format for the surface, eg. DDPF_RGB , 0, 16, 0x7C00, 0x03e0, 0x001F, 0}, // 16-bit RGB 5:5:5 DDPF_FOURCC, MAKEFOURCC('U','Y','V','Y'),0,0,0,0,0}, // UYVY and so on. If i create a surface of UYVY, can i copy an RGB image directly onto this surface, or i need convert the image to UYVY first? 2. Now i create a UYVY surface and i copy a buffer of the same type(UYVY too) onto the surface, but it shows incorrectly. What maybe the problem is? Can anybody help me? Thanks in advance!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!