Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用在 OSX 和 Windows 上运行的代码创建一个 .DDS 文件。尽管格式看起来并不难,但我仍然想要一个编写文件的示例。注意我不需要阅读它,只需编写它。
C 或 C++ 和 RGBA 位图。
我最后只好写了一个RAW文件,并使用GraphicConvertor(mac)读取它并写入DDS文件。我认为Photoshop也可以做到。RAW 文件只是直接写入二进制文件的 RGB 或 RGBA 或类似格式。然后在阅读应用程序中告诉它尺寸,以便它可以读取它。然后你导出到任何东西。不是一个完美的解决方案,但它可以满足我的需要。