Crate ptex

Source

Structs§

Cache
File-handle and memory cache for reading ptex files
DataSize
Query the size in bytes for each DataType.
OneValue
Return the value of “1.0” for the specified DataType (1.0 (float), 255.0 (8bit), …).
Res
Pixel resolution of a given texture. The resolution is stored in log form: ulog2 = log2(ures), vlog2 = log2(vres)). Note: negative ulog2 or vlog2 values are reserved for internal use.
Texture
Interface for reading data from a ptex file
Writer
Interface for writing data to a ptex file.
f16
A 16-bit floating point type implementing the IEEE 754-2008 standard binary16 a.k.a “half” format.

Enums§

Error
The main Error type returns either error Messages or FileIO errors.

Type Aliases§

BorderMode
How to handle mesh border when filtering.
DataType
Type of data stored in texture file.
EdgeFilterMode
How to handle transformation across edges when filtering.
EdgeId
Edge IDs used in adjacency data in the Ptex::FaceInfo struct. Edge ID usage for triangle meshes is TBD.
FaceInfo
Information about a face, as stored in the Ptex file header.
MeshType
Type of base mesh for which the textures are defined. A mesh can be triangle-based (with triangular textures) or quad-based (with rectangular textures). */
MetaDataType
Type of meta data entry.