Maven module :un.storage : model3d-mdl :
Class : un.storage.model3d.source.vtf.VTFHeader
Extends/Implements : -
Subclasses : -

author  Johann Sorel


Variables : signature, version1, version2, headerSize, width, height, flags, frames, firstFrame, padding0, reflectivity, padding1, bumpmapScale, highResImageFormat, mipmapCount, lowResImageFormat, lowResImageWidth, lowResImageHeight, depth
Functions : read



file signature, should be VTF0 */
public Chars signature


version, should be 7.2 */
public int version1

public int version2


Size of the header struct (16 byte aligned; currently 80 bytes). */
public int headerSize


Width of the largest mipmap in pixels. Must be a power of 2. */
public int width


Height of the largest mipmap in pixels. Must be a power of 2. */
public int height


VTF flags. */
public int flags


Number of frames, if animated (1 for no animation). */
public int frames


First frame in animation (0 based). */
public int firstFrame


reflectivity padding (16 byte alignment). */
public byte[] padding0


reflectivity vector. */
public Vector reflectivity


reflectivity padding (8 byte packing). */
public byte[] padding1


Bumpmap scale. */
public float bumpmapScale


High resolution image format. */
public int highResImageFormat


Number of mipmaps. */
public byte mipmapCount


Low resolution image format (always DXT1). */
public int lowResImageFormat


Low resolution image width. */
public int lowResImageWidth


Low resolution image height. */
public int lowResImageHeight


Depth of the largest mipmap in pixels. */
public int depth


public void read (DataInputStream ds)