Expand description
cxx FFI bindings to the Ptex C++ API. The ffi module provides raw access to the underlying C++ APIs.
Structs§
- How to handle mesh border when filtering.
- Type of data stored in texture file.
- How to handle transformation across edges when filtering.
- Edge IDs used in adjacency data in the Ptex::FaceInfo struct. Edge ID usage for triangle meshes is TBD.
- Information about a face, as stored in the Ptex file header.
- 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). */
- Type of meta data entry.
- File-handle and memory cache for reading ptex files.
- Interface for reading data from a ptex file
- Interface for writing data to a ptex file.
- 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.
Functions§
- Return the size in bytes of the specified DataType.
- Return the adjacent edge for this face.
- Get the adjacent face for the specified face ID.
- Create a default-constructed FaceInfo.
- Create a FaceInfo from a Res.
- Create a FaceInfo from a Res and adjacency information.
- Return true if the FaceInfo contains edits.
- Return true if the FaceInfo contains constant data.
- Return true if the FaceInfo is in a neighborhood of constant faces.
- Return true if the FaceInfo is a subface.
- Set the adjacent edges.
- Set the adjacent faces.
- Return the value of “1.0” for the specified DataType (1.0 (float), 255.0 (8bit), …).
- Return the 1.0/value of “1.0” for the specified DataType (1/1.0 (float), 1/255.0 (8bit), …).
- Create a cache with the specified limits.
- Access a texture. If the specified path was previously accessed from the cache, then a pointer to the cached texture will be returned.
- Query the search path. Returns string set via
ptexcache_set_search_path
. - Release a PtexCache Cache will be immediately destroyed and all resources will be released.
- Set a search path for finding textures. Parameters:
- Get the alpha channel for the specified PtexTexture.
- Get the BorderMode for the specified PtexCache and direction.
- Get the BorderMode for the specified PtexCache and direction.
- Get the DataType for the specified PtexCache.
- Get the EdgeFilterMode for the specified PtexCache.
- Get the FaceInfo for the specified PtexTexture and faceid.
- Get the MeshType for the specified PtexCache.
- Get the number of channels for the specified PtexTexture.
- Get the number of faces for the specified PtexTexture.
- Get the path for the specified PtexCache.
- Get the pixel value for the specified PtexCache.
- Return true if the PtexTexture contains edits.
- Return true if the PtexTexture has mip maps.
- Release a PtexTexture instance.
- Close an open PtexWriter.
- Create a PtexWriter.
- Release a PtexWriter.
- Writer a face to a PtexWriter
- Clamp the resolution value against the given value.
- Create a default-constructed Res.
- Create a Res from u and v log2 sizes.
- Create a Res from a packed u16 value.
- Determine the total number of tiles for the given tile res.
- Determine the number of tiles in the u direction for the given tile res.
- Determine the number of tiles in the v direction for the given tile res.
- Return the size for a Res object.
- Return a Res object with swapped u, v values
- Swap the u, v values in-place on a Res.
- Return the log2 resolution in the u direction.
- Return the log2 resolution in the v direction.