DDS File Reference DDS的档案编号
来源:互联网 发布:c语言system是什么意思 编辑:程序博客网 时间:2024/04/30 18:26
DDS File Reference DDS的档案编号
google自动翻译:
The DirectDraw Surface (.dds) file format is used to store textures and cubic environment maps, both with and without mipmap levels. DirectDraw的表面(。dds的)文件格式是用来存储纹理,立方环境映射具有和不具有多重映像水平。 This format can store uncompressed and compressed pixel formats, and is the preferred file format for storing DXTn compressed data.这种格式可以存储压缩和压缩图像格式,并且是压缩数据存储DXTn首选文件格式。 This file format is supported by the DirectX Texture tool ( DirectX Texture Editor (Dxtex.exe) ), as well as some non-Microsoft tools, and by the D3DX library.此文件格式支持DirectX纹理工具(DirectX纹理编辑器(Dxtex.exe)),以及一些非微软的工具,和的D3DX库。
This format was introduced with DirectX 7.介绍了这种格式与DirectX 7。 In DirectX 8, support for volume textures was added.在DirectX 8,支持音量纹理增加了。
File Layout文件布局
The basic structure of a .dds file is a header, and one or more surfaces written to a binary file.一。DDS的文件的基本结构是一个头,以及一个或多个表面写入二进制文件。 The header consists of a FOURCC and a DDSURFACEDESC2 structure.标头包含一个都自动检测和DDSURFACEDESC2结构。 This header contains all the information needed to determine the contents of the entire file.此标头包含所有需要确定整个文件的内容的信息。 The image below shows the layout of a .dds file.下面的图片显示了。DDS的布局文件。
Surface Format Header表面格式头
The DDSURFACEDESC2 structure describes the file contents using the standard flags and values defined in the DirectDraw documentation, but files should use a restricted set of values to ensure full compatibility.在DDSURFACEDESC2结构描述了文件的内容使用标准的国旗和DirectDraw的文档定义的值,但文件应该使用一套价值观限制以确保兼容性。 A robust reader should verify key values and a robust writer should ensure all required flags are set for the different fields and options to ensure easy loading by the application or other tool.阿强劲读者应核实键值和强有力的作家应确保所有必需的标志是为不同领域和选项,以确保应用程序或其它工具很容易加载。 Also, a robust reader should not use a field unless the corresponding flag is set, and a robust writer should set all undefined fields to 0.此外,强大的读者不应该使用一个字段,除非相应的标志,以及一个强大的作家应该设置为0所有未定义的领域。
The table below shows the members of the DDSURFACEDESC2 structure.下表显示的DDSURFACEDESC2结构的成员。
Note that the field names used in this description do not correspond exactly with the DDSURFACEDESC2 fields due to the restrictions placed on the .dds file format, but a standard DDSURFACEDESC2 structure can and should be used.请注意,在此字段名称用于描述不完全一致的,由于在。DDS的文件格式的限制DDSURFACEDESC2领域,而是一个标准DDSURFACEDESC2结构可以而且应该被使用。 Use the magic DDS value and the header dwSize value to validate the file.使用神奇的DDS的价值和头dwSize值来验证文件。
The pixel format of the image is given in the ddpfPixelFormat field of the header, and can describe all the formats supported by Direct3D.图像的像素格式是由于在头ddpfPixelFormat领域,可以描述的所有的Direct3D支持的格式。 DDS files are usually restricted to either RGB or FOURCC formats, and the use of other formats is not generally supported. DDS的文件通常仅限于RGB或fourcc值格式,其他格式的使用并不普遍支持。 Restrict usage to RGB formats A8R8G8B8, A1R5G5B5, A4R4G4B4, R8G8B8, R5G6B5; and FOURCC formats DXT1, DXT2, DXT3, DXT4, and DXT5 to ensure the best support.限制使用RGB格式A8R8G8B8,A1R5G5B5,A4R4G4B4,R8G8B8,R5G6B5和fourcc值格式DXT1,DXT2,DXT3,DXT4,并DXT5,以确保最佳的支持。 A well-written reader should handle more formats, if possible.良好的书面读者应该处理更多的格式,如果可能的话。
The following table shows the layout of the DDPIXELFORMAT structure.下表显示了DDPIXELFORMAT结构布局。
The final details of the format are inferred from the capabilities bits set in the ddsCaps field of the header.格式的最后细节推断,在头ddsCaps字段设置的功能位。 The layout of the ddsCaps structure is shown in the table below.该ddsCaps结构布局载于下表。
Note that as of DirectX 8, cubic environment maps are always written with all faces defined.请注意,由于DirectX的8立方环境映射总是面临的所有书面界定。
- DDS File Layout for Textures DDS的文件布局纹理
- DDS File Layout for Cubic Environment Maps DDS的文件布局立方环境映射
- DDS File Layout for Volume Textures DDS的文件布局体积纹理
- DDS Bit Flag Values DDS位标志值
- DDS File Reference DDS的档案编号
- DDS File Reference DDS的档案编号
- dds
- DDS
- dds
- DDS
- DDS
- 关于DDS文件格式的说明
- deCarta与DDS的关系
- ROM 之 DDS的调频
- ROM 之 DDS的调相
- 对DDS的深度认识
- DDS 文件
- DDS 文件格式
- RTI DDS
- 关于DDS
- DDS程序
- DDS格式
- 疑是帝国CMS(EmpireCMS v 6.0)最新BUG
- layout 中include和merge标签的使用
- 围观《程序员》和CSDN(不断更新中)
- 09年12月11日活动主题:CTO俱乐部热心会员沟通会
- 无法执行添加/移除操作,因为代码元素“CXXXDlg”是只读的
- DDS File Reference DDS的档案编号
- C++中string转为int
- Delphi 5 控制Excel
- 畸形婚姻的尴尬与无奈
- Scoket Sample
- DataGridView单元格的控制操作
- oobbs开发手记
- 原创:windows 7安装XP mode
- XML,DTD,XSD,XSL的区别